Skip to content

Commit e2289db

Browse files
MiaoheLinmartinkpetersen
authored andcommitted
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/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 51d263c commit e2289db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/fcoe/fcoe_ctlr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static void fcoe_ctlr_announce(struct fcoe_ctlr *fip)
337337
printk(KERN_NOTICE "libfcoe: host%d: "
338338
"FIP Fibre-Channel Forwarder MAC %pM deselected\n",
339339
fip->lp->host->host_no, fip->dest_addr);
340-
memset(fip->dest_addr, 0, ETH_ALEN);
340+
eth_zero_addr(fip->dest_addr);
341341
}
342342
if (sel) {
343343
printk(KERN_INFO "libfcoe: host%d: FIP selected "

0 commit comments

Comments
 (0)