[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220701082935.110924-1-xuqiang36@huawei.com>
Date: Fri, 1 Jul 2022 08:29:35 +0000
From: Xu Qiang <xuqiang36@...wei.com>
To: <srini.raju@...elifi.com>, <kvalo@...nel.org>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>
CC: <linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <xuqiang36@...wei.com>,
<rui.xiang@...wei.com>
Subject: [PATCH v2 -next] wifi: plfxlc: Use eth_zero_addr() to assign zero address
Using eth_zero_addr() to assign zero address instead of memset().
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Xu Qiang <xuqiang36@...wei.com>
---
v2:
- fix typo in commit log
drivers/net/wireless/purelifi/plfxlc/usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/purelifi/plfxlc/usb.c b/drivers/net/wireless/purelifi/plfxlc/usb.c
index 8519cf0adfff..39e54b3787d6 100644
--- 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;
}
}
--
2.17.1
Powered by blists - more mailing lists