[PATCH 1/1] Staging: ath6kl, remove unneeded ptr checking
Jiri Slaby
jslaby at suse.cz
Sat Sep 4 13:03:07 UTC 2010
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 at suse.cz>
Cc: Vipin Mehta <vmehta at atheros.com>
Cc: Greg Kroah-Hartman <gregkh at suse.de>
---
drivers/staging/ath6kl/wmi/wmi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/ath6kl/wmi/wmi.c b/drivers/staging/ath6kl/wmi/wmi.c
index 690c168..d14bad2 100644
--- a/drivers/staging/ath6kl/wmi/wmi.c
+++ b/drivers/staging/ath6kl/wmi/wmi.c
@@ -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;
}
--
1.7.2.2
More information about the devel
mailing list