Skip to content

Commit

Permalink
staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyril Roelandt authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent e5516fd commit 1901ab6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/wlags49_h2/wl_wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1901ab6

Please sign in to comment.