From: Luca Ceresoli Date: Wed, 4 May 2011 02:40:47 +0000 (+0000) Subject: net/net.c: cosmetic: do not use assignment in if condition X-Git-Tag: v2011.06-rc1~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ccb9ebefbec68f18b4f479b774fa5f6edc2ad819;p=oweals%2Fu-boot.git 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 Cc: Wolfgang Denk Cc: Ben Warren --- diff --git a/net/net.c b/net/net.c index 1f3d70bd90..2abf87929b 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