From: Holger Schurig Date: Wed, 2 Apr 2008 14:34:51 +0000 (+0200) Subject: libertas: fix mode initialization problem X-Git-Tag: v2.6.25-rc9~4^2~5^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=877cb0d4af2658beb5f89d38ae51968782f62fad;p=linux-2.6-omap-h63xx.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 87e145ffe8f..6a24ed6067e 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);