1
0
Fork 0

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>
hifive-unleashed-5.1
Cyril Roelandt 2012-12-04 21:08:36 +01:00 committed by Greg Kroah-Hartman
parent e5516fd34e
commit 1901ab6292
1 changed files with 0 additions and 2 deletions

View File

@ -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