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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}