Return-path: Received: from mail-wi0-f169.google.com ([209.85.212.169]:33125 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbbJ1UXy (ORCPT ); Wed, 28 Oct 2015 16:23:54 -0400 From: Punit Vara To: johnny.kim@atmel.com Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Punit Vara Subject: [RESEND PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset() Date: Thu, 29 Oct 2015 01:53:30 +0530 Message-Id: <1446063810-10472-1-git-send-email-punitvara@gmail.com> (sfid-20151028_212421_361045_16C23838) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- Applied on updated staging tree. drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 5f81eab..53e21cd 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -4642,7 +4642,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); -- 2.5.3