staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/staging/wlags49_h2/wl_wext.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/wlags49_h2/wl_wext.c +0 -2
@@ -796,8 +796,6 @@ static int wireless_get_bssid(struct net_device *dev, struct iw_request_info *inwl_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
Signature · 1 line
1.7.10.4