summaryrefslogtreecommitdiff
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-07-20 16:39:04 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-24 22:09:56 -0400
commite2289db1ccc6f217287227d5570b40fb7ce6ae89 (patch)
tree46ec99ee4ae1765880677af7b5d3c1bc85d5aaea /drivers/scsi/fcoe
parent51d263cbdd769eea65da2f13e393b542085af10d (diff)
downloadlwn-e2289db1ccc6f217287227d5570b40fb7ce6ae89.tar.gz
lwn-e2289db1ccc6f217287227d5570b40fb7ce6ae89.zip
scsi: fcoe: Use eth_zero_addr() to clear mac address
Use eth_zero_addr() to clear mac address insetad of memset(). Link: https://lore.kernel.org/r/1595234344-13955-1-git-send-email-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe_ctlr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index a31d4f2f9c38..85c7959961cc 100644
--- a/drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -337,7 +337,7 @@ static void fcoe_ctlr_announce(struct fcoe_ctlr *fip)
printk(KERN_NOTICE "libfcoe: host%d: "
"FIP Fibre-Channel Forwarder MAC %pM deselected\n",
fip->lp->host->host_no, fip->dest_addr);
- memset(fip->dest_addr, 0, ETH_ALEN);
+ eth_zero_addr(fip->dest_addr);
}
if (sel) {
printk(KERN_INFO "libfcoe: host%d: FIP selected "