Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1901ab62 authored by Cyril Roelandt's avatar Cyril Roelandt Committed by Greg Kroah-Hartman
Browse files

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: default avatarCyril Roelandt <tipecaml@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5516fd3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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