aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-09-04 09:03:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-05 00:26:06 -0400
commit2a4724a76d73b3888d2e12780a7181fbe6e0766a (patch)
treee844bd8cf9aca1dfda766a5fcbe92682ab897306
parentff7d368ed98b27405197a1d3e76d8032ecbe6194 (diff)
Staging: ath6kl, remove unneeded ptr checking
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>
-rw-r--r--drivers/staging/ath6kl/wmi/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ath6kl/wmi/wmi.c b/drivers/staging/ath6kl/wmi/wmi.c
index 690c1681dad..d14bad28bdf 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)
1496 * The average value of RSSI give end-user better feeling for instance value of scan result 1496 * The average value of RSSI give end-user better feeling for instance value of scan result
1497 * It also sync up RSSI info in GUI between scan result and RSSI signal icon 1497 * It also sync up RSSI info in GUI between scan result and RSSI signal icon
1498 */ 1498 */
1499 if (bss && IEEE80211_ADDR_EQ(wmip->wmi_bssid, bih->bssid)) { 1499 if (IEEE80211_ADDR_EQ(wmip->wmi_bssid, bih->bssid)) {
1500 bih->rssi = bss->ni_rssi; 1500 bih->rssi = bss->ni_rssi;
1501 bih->snr = bss->ni_snr; 1501 bih->snr = bss->ni_snr;
1502 } 1502 }