Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1256990 > unrolled thread

[PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()

Started byPunit Vara <punitvara@gmail.com>
First post2015-10-27 18:30 +0100
Last post2015-10-27 20:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset() Punit Vara <punitvara@gmail.com> - 2015-10-27 18:30 +0100
    Re: [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over  memset() Greg KH <gregkh@linuxfoundation.org> - 2015-10-27 20:50 +0100

#1256990 — [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()

FromPunit Vara <punitvara@gmail.com>
Date2015-10-27 18:30 +0100
Subject[PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()
Message-ID<qogem-80v-25@gated-at.bofh.it>
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>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1257163 — Re: [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()

FromGreg KH <gregkh@linuxfoundation.org>
Date2015-10-27 20:50 +0100
SubjectRe: [PATCH v2] Staging: wilc1000: Prefer eth_broadcast_addr over memset()
Message-ID<qoipP-Py-1@gated-at.bofh.it>
In reply to#1256990
On Tue, Oct 27, 2015 at 10:51:39PM +0530, Punit Vara wrote:
> 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>
> ---
>  drivers/staging/wilc1000/host_interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

What changed from v1?

Always put that information here below the --- line so that we know.

Please fix up and resend.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web