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>
This commit is contained in:
parent
3319a8ba82
commit
b3ef4a0e40
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user