diff options
| author | Luca Ceresoli <luca.ceresoli@comelit.it> | 2011-05-04 02:40:47 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-05-12 22:07:41 +0200 | 
| commit | ccb9ebefbec68f18b4f479b774fa5f6edc2ad819 (patch) | |
| tree | 8442b4072a9d36cabc613412484acbbcf69c1a30 /net/net.c | |
| parent | c819abeef7e8d924baf3d15a1eef51525d90182e (diff) | |
| download | olio-uboot-2014.01-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.tar.xz olio-uboot-2014.01-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.zip | |
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/net.c')
| -rw-r--r-- | net/net.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -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 |