diff options
| author | Michael Brown | 2007-01-03 16:56:15 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-03 16:56:15 +0100 |
| commit | 718294553bf4dcb6996155e67f06e2af239b8303 (patch) | |
| tree | d4f0df011c2908b884e03107ecaa3be6b68d5cfc /src | |
| parent | Use whole bytes for the ACKED and RCVD portions of tcp_state; it (diff) | |
| download | ipxe-718294553bf4dcb6996155e67f06e2af239b8303.tar.gz ipxe-718294553bf4dcb6996155e67f06e2af239b8303.tar.xz ipxe-718294553bf4dcb6996155e67f06e2af239b8303.zip | |
Fix compiler warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/ipv4.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 05a00194e..9e3ba472b 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. */ |
