Skip to contentSkip to conversation

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

PATCH In review David Miller 1 participant 1 message May 29, 2009

Subsystems (4)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/10 : aoe: Remove superfluous clearing of skb fields in new_skb().

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

---
 drivers/block/aoe/aoecmd.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
drivers/block/aoe/aoecmd.c +0 -7
index 31693bc..965ece2 100644
@@ -34,13 +34,6 @@ new_skb(ulong len)
 		skb_reset_mac_header(skb);
 		skb_reset_network_header(skb);
 		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;
 }
Signature · 1 line
1.6.3