* [PATCH] staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid()
@ 2012-12-04 20:08 Cyril Roelandt
0 siblings, 0 replies; only message in thread
From: Cyril Roelandt @ 2012-12-04 20:08 UTC (permalink / raw)
To: linux-kernel
Cc: kernel-janitors, pe1dnn, gregkh, jkosina, yongjun_wei,
standby24x7, viro, devel, Cyril Roelandt
A few lines after this call, we memcpy over the same memory area, so the call to
memset is not necessary.
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
drivers/staging/wlags49_h2/wl_wext.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c
index f553366..c731ff2 100644
--- a/drivers/staging/wlags49_h2/wl_wext.c
+++ b/drivers/staging/wlags49_h2/wl_wext.c
@@ -796,8 +796,6 @@ static int wireless_get_bssid(struct net_device *dev, struct iw_request_info *in
wl_act_int_off( lp );
- memset( &ap_addr->sa_data, 0, ETH_ALEN );
-
ap_addr->sa_family = ARPHRD_ETHER;
/* Assume AP mode here, which means the BSSID is our own MAC address. In
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-04 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-04 20:08 [PATCH] staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid() Cyril Roelandt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).