projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c27421
)
wifi: plfxlc: Use eth_zero_addr() to assign zero address
author
Xu Qiang
<xuqiang36@huawei.com>
Fri, 1 Jul 2022 08:29:35 +0000
(08:29 +0000)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 27 Jul 2022 13:01:16 +0000
(16:01 +0300)
Using eth_zero_addr() to assign zero address instead of memset().
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xu Qiang <xuqiang36@huawei.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20220701082935.110924-1-xuqiang36@huawei.com
drivers/net/wireless/purelifi/plfxlc/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/purelifi/plfxlc/usb.c
b/drivers/net/wireless/purelifi/plfxlc/usb.c
index 8519cf0adfff366b48cdbdde38ac1fbe51b85832..39e54b3787d6abb7fc1f9fd38d639eed6e3b42bd 100644
(file)
--- a/
drivers/net/wireless/purelifi/plfxlc/usb.c
+++ b/
drivers/net/wireless/purelifi/plfxlc/usb.c
@@
-562,7
+562,7
@@
static void sta_queue_cleanup_timer_callb(struct timer_list *t)
if (tx->station[sidx].flag & STATION_HEARTBEAT_FLAG) {
tx->station[sidx].flag ^= STATION_HEARTBEAT_FLAG;
} else {
-
memset(tx->station[sidx].mac, 0, ETH_ALEN
);
+
eth_zero_addr(tx->station[sidx].mac
);
tx->station[sidx].flag = 0;
}
}