]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fcoe: Use netif_is_bond_master() instead of open code
authorMichelleJin <shjy180909@gmail.com>
Fri, 15 Oct 2021 14:20:06 +0000 (14:20 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Oct 2021 02:38:34 +0000 (22:38 -0400)
commit9604beae1971a7b43dd49acb9df94943f0e964dd
tree58a6297e0ae0cc830ab5f1ae9197126b97aa741f
parentcabad514d5a55bc2db969a73c7a091f248ce4a51
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>
drivers/scsi/fcoe/fcoe.c