diff options
author | Punit Vara <punitvara@gmail.com> | 2015-10-29 01:53:30 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-29 08:51:27 +0900 |
commit | 0bc852413be32a07d12364ee24c772b335fa6f86 (patch) | |
tree | 748b616c20055a9f756e5127d41385bdf864e4eb /drivers/staging/wilc1000 | |
parent | 0d21ad20f496f5c14df5cccbef74883837003851 (diff) | |
download | blackbird-op-linux-0bc852413be32a07d12364ee24c772b335fa6f86.tar.gz blackbird-op-linux-0bc852413be32a07d12364ee24c772b335fa6f86.zip |
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>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 9a6fcc7e844c..dbbe72c7e255 100644 --- 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); |