Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: batman-adv: removing redundant assignment of skb->dev

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Marek Lindner and committed by
Greg Kroah-Hartman
b001f71e 368b4f06

+1 -4
+1 -4
drivers/staging/batman-adv/soft-interface.c
··· 201 201 skb_pull_rcsum(skb, hdr_size); 202 202 /* skb_set_mac_header(skb, -sizeof(struct ethhdr));*/ 203 203 204 - skb->dev = soft_iface; 204 + /* skb->dev & skb->pkt_type are set here */ 205 205 skb->protocol = eth_type_trans(skb, soft_iface); 206 206 207 207 /* should not be neccesary anymore as we use skb_pull_rcsum() ··· 209 209 * -- Dec 21st 2009, Simon Wunderlich */ 210 210 211 211 /* skb->ip_summed = CHECKSUM_UNNECESSARY;*/ 212 - 213 - /* TODO: set skb->pkt_type to PACKET_BROADCAST, PACKET_MULTICAST, 214 - * PACKET_OTHERHOST or PACKET_HOST */ 215 212 216 213 priv->stats.rx_packets++; 217 214 priv->stats.rx_bytes += skb->len + sizeof(struct ethhdr);