Browse Source

Fix compiler warning

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
718294553b
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/net/ipv4.c

+ 2
- 3
src/net/ipv4.c View File

@@ -414,9 +414,8 @@ static int ipv4_rx ( struct pk_buff *pkb, struct net_device *netdev __unused,
414 414
 		DBG ( "Bad checksum %x\n", chksum );
415 415
 	}
416 416
 	/* Fragment reassembly */
417
-	if ( iphdr->frags & IP_MASK_MOREFRAGS || 
418
-		( !iphdr->frags & IP_MASK_MOREFRAGS &&
419
-			iphdr->frags & IP_MASK_OFFSET != 0 ) ) {
417
+	if ( ( iphdr->frags & IP_MASK_MOREFRAGS ) || 
418
+	     ( ( iphdr->frags & IP_MASK_OFFSET ) != 0 ) ) {
420 419
 		/* Pass the fragment to the reassembler ipv4_ressable() which
421 420
 		 * either returns a fully reassembled packet buffer or NULL.
422 421
 		 */

Loading…
Cancel
Save