From ccb9ebefbec68f18b4f479b774fa5f6edc2ad819 Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Wed, 4 May 2011 02:40:47 +0000 Subject: [PATCH] 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 --- net/net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1