mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 00:20:06 +00:00
qlge: remove unnecessary setting of skb->dev
skb->dev is being unnecessarily set by the driver on packet recieve. eth_type_trans already sets skb->dev to the proper value and it is not referenced anywhere else in the dirver, thus making its setting unnecessary. Signed-off-by: Jon Mason <jdmason@kudzu.us> Cc: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Cc: Ron Mercer <ron.mercer@qlogic.com> Cc: linux-driver@qlogic.com Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ad95dfc72a
commit
c768b681f4
@ -1619,7 +1619,6 @@ static void ql_process_mac_rx_skb(struct ql_adapter *qdev,
|
||||
}
|
||||
|
||||
prefetch(skb->data);
|
||||
skb->dev = ndev;
|
||||
if (ib_mac_rsp->flags1 & IB_MAC_IOCB_RSP_M_MASK) {
|
||||
netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev,
|
||||
"%s Multicast.\n",
|
||||
@ -1934,7 +1933,6 @@ static void ql_process_mac_split_rx_intr(struct ql_adapter *qdev,
|
||||
}
|
||||
|
||||
prefetch(skb->data);
|
||||
skb->dev = ndev;
|
||||
if (ib_mac_rsp->flags1 & IB_MAC_IOCB_RSP_M_MASK) {
|
||||
netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, "%s Multicast.\n",
|
||||
(ib_mac_rsp->flags1 & IB_MAC_IOCB_RSP_M_MASK) ==
|
||||
|
Loading…
x
Reference in New Issue
Block a user