diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-11-19 16:04:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 22:20:16 +0300 |
commit | b960a0ac6939ef4962c5abbf33e80d1382b45fc1 (patch) | |
tree | 8ec2827b9838d2f5377b3fb962e844d9f097bb9a /drivers/scsi/fcoe/fcoe.c | |
parent | 1abcd82c20e7cbfd2b89d834b24ff68feae158ec (diff) | |
download | linux-b960a0ac6939ef4962c5abbf33e80d1382b45fc1.tar.xz |
vlan: make __vlan_hwaccel_put_tag return void
Always returns the same skb it gets, so change to void.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 4a8ac7d8c76b..73a8cc485f87 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1669,10 +1669,8 @@ static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) fcoe->realdev->features & NETIF_F_HW_VLAN_CTAG_TX) { /* must set skb->dev before calling vlan_put_tag */ skb->dev = fcoe->realdev; - skb = __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), - vlan_dev_vlan_id(fcoe->netdev)); - if (!skb) - return -ENOMEM; + __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), + vlan_dev_vlan_id(fcoe->netdev)); } else skb->dev = fcoe->netdev; |