mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
Staging: wilc1000: Prefer eth_broadcast_addr over memset()
This patch is to the host_interface.c that fixes up following warning by checkpatch: -prefer eth_broadcast_addr() over memset() Signed-off-by: Punit Vara <punitvara@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0d21ad20f4
commit
0bc852413b
@ -4571,7 +4571,7 @@ s32 host_int_del_station(struct host_if_drv *hif_drv, const u8 *pu8MacAddr)
|
||||
msg.drv = hif_drv;
|
||||
|
||||
if (!pu8MacAddr)
|
||||
memset(pstrDelStationMsg->mac_addr, 255, ETH_ALEN);
|
||||
eth_broadcast_addr(pstrDelStationMsg->mac_addr);
|
||||
else
|
||||
memcpy(pstrDelStationMsg->mac_addr, pu8MacAddr, ETH_ALEN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user