From: Miaohe Lin Date: Mon, 20 Jul 2020 08:39:04 +0000 (+0800) Subject: scsi: fcoe: Use eth_zero_addr() to clear mac address X-Git-Tag: v5.9-rc1~116^2~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2289db1ccc6f217287227d5570b40fb7ce6ae89;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c index a31d4f2f9c382..85c7959961cca 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 "