From: Holger Schurig Date: Wed, 2 Apr 2008 14:34:51 +0000 (+0200) Subject: libertas: fix mode initialization problem X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=877cb0d4af2658beb5f89d38ae51968782f62fad;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git libertas: fix mode initialization problem After moving lbs_find_best_network_ssid() from scan.c to assoc.c gcc was able to deduce that new_mode might stay uninitialized. Signed-off-by: Holger Schurig Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 87e145ffe8f1..6a24ed6067e0 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c @@ -541,7 +541,7 @@ void lbs_association_worker(struct work_struct *work) } if (find_any_ssid) { - u8 new_mode; + u8 new_mode = assoc_req->mode; ret = lbs_find_best_network_ssid(priv, assoc_req->ssid, &assoc_req->ssid_len, assoc_req->mode, &new_mode);