diff mbox series

scsi: fcoe: use eth_zero_addr() to clear mac address

Message ID 1595234344-13955-1-git-send-email-linmiaohe@huawei.com (mailing list archive)
State Mainlined
Commit e2289db1ccc6f217287227d5570b40fb7ce6ae89
Headers show
Series scsi: fcoe: use eth_zero_addr() to clear mac address | expand

Commit Message

Miaohe Lin July 20, 2020, 8:39 a.m. UTC
From: Miaohe Lin <linmiaohe@huawei.com>

Use eth_zero_addr() to clear mac address insetad of memset().

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 drivers/scsi/fcoe/fcoe_ctlr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen July 25, 2020, 2:50 a.m. UTC | #1
On Mon, 20 Jul 2020 16:39:04 +0800, linmiaohe wrote:

> Use eth_zero_addr() to clear mac address insetad of memset().

Applied to 5.9/scsi-queue, thanks!

[1/1] scsi: fcoe: Use eth_zero_addr() to clear mac address
      https://git.kernel.org/mkp/scsi/c/e2289db1ccc6
diff mbox series

Patch

diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index 1791a393795d..ef92cfacadc1 100644
--- a/drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -336,7 +336,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 "