aboutsummaryrefslogtreecommitdiff
path: root/src/net/ipv4.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-01-03 15:56:15 +0000
committerMichael Brown <mcb30@etherboot.org>2007-01-03 15:56:15 +0000
commit718294553bf4dcb6996155e67f06e2af239b8303 (patch)
treed4f0df011c2908b884e03107ecaa3be6b68d5cfc /src/net/ipv4.c
parentb91b9d3d88bdc1bf6270ca82cd98966cf64e4ed5 (diff)
downloadipxe-718294553bf4dcb6996155e67f06e2af239b8303.zip
ipxe-718294553bf4dcb6996155e67f06e2af239b8303.tar.gz
ipxe-718294553bf4dcb6996155e67f06e2af239b8303.tar.bz2
Fix compiler warning
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r--src/net/ipv4.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 05a0019..9e3ba47 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -414,9 +414,8 @@ static int ipv4_rx ( struct pk_buff *pkb, struct net_device *netdev __unused,
DBG ( "Bad checksum %x\n", chksum );
}
/* Fragment reassembly */
- if ( iphdr->frags & IP_MASK_MOREFRAGS ||
- ( !iphdr->frags & IP_MASK_MOREFRAGS &&
- iphdr->frags & IP_MASK_OFFSET != 0 ) ) {
+ if ( ( iphdr->frags & IP_MASK_MOREFRAGS ) ||
+ ( ( iphdr->frags & IP_MASK_OFFSET ) != 0 ) ) {
/* Pass the fragment to the reassembler ipv4_ressable() which
* either returns a fully reassembled packet buffer or NULL.
*/