summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorMichelleJin <shjy180909@gmail.com>2021-10-15 16:20:06 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-19 04:38:34 +0200
commitb3ef4a0e40df92538f1106fef2f9730cc6fd2ea5 (patch)
tree58a6297e0ae0cc830ab5f1ae9197126b97aa741f /drivers/scsi/fcoe
parentscsi: ibmvscsi: Use GFP_KERNEL with dma_alloc_coherent() in initialize_event_... (diff)
downloadlinux-b3ef4a0e40df92538f1106fef2f9730cc6fd2ea5.tar.xz
linux-b3ef4a0e40df92538f1106fef2f9730cc6fd2ea5.zip
scsi: fcoe: Use netif_is_bond_master() instead of open code
'netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER' is defined as netif_is_bond_master() in netdevice.h. Replace it to clean up code. Link: https://lore.kernel.org/r/20211015142006.540773-1-shjy180909@gmail.com Reviewed-by: Lee Duncan <lduncan@suse.com> Signed-off-by: MichelleJin <shjy180909@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 5ae6c207d3ac..6415f88738ad 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -307,7 +307,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
}
/* Do not support for bonding device */
- if (netdev->priv_flags & IFF_BONDING && netdev->flags & IFF_MASTER) {
+ if (netif_is_bond_master(netdev)) {
FCOE_NETDEV_DBG(netdev, "Bonded interfaces not supported\n");
return -EOPNOTSUPP;
}