Commit 70c898d4 authored by Xu Qiang's avatar Xu Qiang Committed by Kalle Valo

wifi: plfxlc: Use eth_zero_addr() to assign zero address

Using eth_zero_addr() to assign zero address instead of memset().
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarXu Qiang <xuqiang36@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220701082935.110924-1-xuqiang36@huawei.com
parent 4c274214
...@@ -562,7 +562,7 @@ static void sta_queue_cleanup_timer_callb(struct timer_list *t) ...@@ -562,7 +562,7 @@ static void sta_queue_cleanup_timer_callb(struct timer_list *t)
if (tx->station[sidx].flag & STATION_HEARTBEAT_FLAG) { if (tx->station[sidx].flag & STATION_HEARTBEAT_FLAG) {
tx->station[sidx].flag ^= STATION_HEARTBEAT_FLAG; tx->station[sidx].flag ^= STATION_HEARTBEAT_FLAG;
} else { } else {
memset(tx->station[sidx].mac, 0, ETH_ALEN); eth_zero_addr(tx->station[sidx].mac);
tx->station[sidx].flag = 0; tx->station[sidx].flag = 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment