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:
parent
4c2742146d
commit
70c898d4ba
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue