projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d263c
)
scsi: fcoe: Use eth_zero_addr() to clear mac address
author
Miaohe Lin
<linmiaohe@huawei.com>
Mon, 20 Jul 2020 08:39:04 +0000
(16:39 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:09:56 +0000
(22:09 -0400)
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>
drivers/scsi/fcoe/fcoe_ctlr.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/fcoe/fcoe_ctlr.c
b/drivers/scsi/fcoe/fcoe_ctlr.c
index a31d4f2f9c382fb499c79c38b2aaad74336416b1..85c7959961cca6161c507ca43ee15662b24123e1 100644
(file)
--- 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 "