Pārlūkot izejas kodu

aoe: Remove superfluous clearing of skb fields in new_skb().

This code uses alloc_skb() which clears them out for us.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 16 gadi atpakaļ
vecāks
revīzija
438263ac58
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. 0 7
      drivers/block/aoe/aoecmd.c

+ 0 - 7
drivers/block/aoe/aoecmd.c

@@ -34,13 +34,6 @@ new_skb(ulong len)
 		skb_reset_mac_header(skb);
 		skb_reset_mac_header(skb);
 		skb_reset_network_header(skb);
 		skb_reset_network_header(skb);
 		skb->protocol = __constant_htons(ETH_P_AOE);
 		skb->protocol = __constant_htons(ETH_P_AOE);
-		skb->priority = 0;
-		skb->next = skb->prev = NULL;
-
-		/* tell the network layer not to perform IP checksums
-		 * or to get the NIC to do it
-		 */
-		skb->ip_summed = CHECKSUM_NONE;
 	}
 	}
 	return skb;
 	return skb;
 }
 }