Skip to content

Commit faa2831

Browse files
Dmitry Kravkovdavem330
authored andcommitted
bnx2x: Fix compilation when CNIC is not selected in config
Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2d9a8db commit faa2831

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/bnx2x/bnx2x_cmn.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,8 +1403,8 @@ void bnx2x_netif_stop(struct bnx2x *bp, int disable_hw)
14031403

14041404
u16 bnx2x_select_queue(struct net_device *dev, struct sk_buff *skb)
14051405
{
1406-
#ifdef BCM_CNIC
14071406
struct bnx2x *bp = netdev_priv(dev);
1407+
#ifdef BCM_CNIC
14081408
if (NO_FCOE(bp))
14091409
return skb_tx_hash(dev, skb);
14101410
else {

0 commit comments

Comments
 (0)