From: Cyril Roelandt Date: Tue, 4 Dec 2012 20:08:36 +0000 (+0100) Subject: staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1901ab629279499249dfe3a26b0a31f0af8efca5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c index f553366cccc5..c731ff2a6aa1 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