Skip to content

Commit

Permalink
Staging: ath6kl, remove unneeded ptr checking
Browse files Browse the repository at this point in the history
In wmi_bssInfo_event_rx, there is unneeded check for bss, because it
is in the branch where the bss is checked to be non-null already.

Remove the superfluous check.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent ff7d368 commit 2a4724a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/wmi/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ wmi_bssInfo_event_rx(struct wmi_t *wmip, A_UINT8 *datap, int len)
* The average value of RSSI give end-user better feeling for instance value of scan result
* It also sync up RSSI info in GUI between scan result and RSSI signal icon
*/
if (bss && IEEE80211_ADDR_EQ(wmip->wmi_bssid, bih->bssid)) {
if (IEEE80211_ADDR_EQ(wmip->wmi_bssid, bih->bssid)) {
bih->rssi = bss->ni_rssi;
bih->snr = bss->ni_snr;
}
Expand Down

0 comments on commit 2a4724a

Please sign in to comment.