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@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
This commit is contained in:
Xu Qiang 2022-07-01 08:29:35 +00:00 committed by Kalle Valo
parent 4c2742146d
commit 70c898d4ba
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}