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>
This commit is contained in:
parent
8befba6f22
commit
458fafdd57
|
@ -2536,7 +2536,7 @@ static void rndis_wlan_craft_connected_bss(struct usbnet *usbdev, u8 *bssid,
|
|||
/* Get signal quality, in case of error use rssi=0 and ignore error. */
|
||||
len = sizeof(rssi);
|
||||
rssi = 0;
|
||||
rndis_query_oid(usbdev, OID_802_11_RSSI, &rssi, &len);
|
||||
ret = rndis_query_oid(usbdev, OID_802_11_RSSI, &rssi, &len);
|
||||
signal = level_to_qual(le32_to_cpu(rssi));
|
||||
|
||||
netdev_dbg(usbdev->net, "%s(): OID_802_11_RSSI -> %d, "
|
||||
|
|
Loading…
Reference in a new issue