projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Staging: wilc1000: Prefer eth_broadcast_addr over memset()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
staging
/
wilc1000
/
host_interface.c
diff --git
a/drivers/staging/wilc1000/host_interface.c
b/drivers/staging/wilc1000/host_interface.c
index 9a6fcc7e844cbf9e6ea1baa12e9de7d75041bf55..dbbe72c7e25572918d4aea2e8c44c00026c790a3 100644
(file)
--- a/
drivers/staging/wilc1000/host_interface.c
+++ b/
drivers/staging/wilc1000/host_interface.c
@@
-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);