summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@comelit.it>2011-05-04 02:40:47 +0000
committerWolfgang Denk <wd@denx.de>2011-05-12 22:07:41 +0200
commitccb9ebefbec68f18b4f479b774fa5f6edc2ad819 (patch)
tree8442b4072a9d36cabc613412484acbbcf69c1a30 /net
parentc819abeef7e8d924baf3d15a1eef51525d90182e (diff)
downloadu-boot-imx-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.zip
u-boot-imx-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.tar.gz
u-boot-imx-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.tar.bz2
net/net.c: cosmetic: do not use assignment in if condition
This removes the following checkpatch issue: - ERROR: do not use assignment in if condition Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 1f3d70b..2abf879 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1616,7 +1616,8 @@ NetReceive(volatile uchar *inpkt, int len)
* a fragment, and either the complete packet or NULL if
* it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL)
*/
- if (!(ip = NetDefragment(ip, &len)))
+ ip = NetDefragment(ip, &len);
+ if (!ip)
return;
/*
* watch for ICMP host redirects