diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-11-16 16:49:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-18 14:22:22 -0500 |
commit | 458fafdd579dcb58c8288c55c9cd92d6816ba094 (patch) | |
tree | 3ce161eeb3d6b6b8b5934b3fcd6ade168c868258 /drivers/net/wireless/rndis_wlan.c | |
parent | 8befba6f2262a6e31d6e3bcf7d07ff46da444ec0 (diff) |
rndis_wlan: avoid uninitialized var warning in rndis_wlan_craft_connected_bss
CC [M] drivers/net/wireless/rndis_wlan.o
drivers/net/wireless/rndis_wlan.c: In function ‘rndis_wlan_craft_connected_bss’:
drivers/net/wireless/rndis_wlan.c:2542:2: warning: ‘ret’ may be used uninitialized in this function
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 8a77ff68590b..ee08bcaaf47a 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -2536,7 +2536,7 @@ static void rndis_wlan_craft_connected_bss(struct usbnet *usbdev, u8 *bssid, | |||
2536 | /* Get signal quality, in case of error use rssi=0 and ignore error. */ | 2536 | /* Get signal quality, in case of error use rssi=0 and ignore error. */ |
2537 | len = sizeof(rssi); | 2537 | len = sizeof(rssi); |
2538 | rssi = 0; | 2538 | rssi = 0; |
2539 | rndis_query_oid(usbdev, OID_802_11_RSSI, &rssi, &len); | 2539 | ret = rndis_query_oid(usbdev, OID_802_11_RSSI, &rssi, &len); |
2540 | signal = level_to_qual(le32_to_cpu(rssi)); | 2540 | signal = level_to_qual(le32_to_cpu(rssi)); |
2541 | 2541 | ||
2542 | netdev_dbg(usbdev->net, "%s(): OID_802_11_RSSI -> %d, " | 2542 | netdev_dbg(usbdev->net, "%s(): OID_802_11_RSSI -> %d, " |