aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/wlags49_h2
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2012-12-04 21:08:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 11:08:12 -0800
commit1901ab629279499249dfe3a26b0a31f0af8efca5 (patch)
tree0b62e398add312c04c0d111333964c8e54fa3adb /drivers/staging/wlags49_h2
parente5516fd34eb2f521b1cb0292129c40de46da931a (diff)
staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid()
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlags49_h2')
-rw-r--r--drivers/staging/wlags49_h2/wl_wext.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c
index f553366cccc..c731ff2a6aa 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