From: Punit Vara Date: Wed, 28 Oct 2015 20:23:30 +0000 (+0530) Subject: Staging: wilc1000: Prefer eth_broadcast_addr over memset() X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~57 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0bc852413be32a07d12364ee24c772b335fa6f86;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);