mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Acked-by: Dan Williams <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
bfe87dbc7b
commit
877cb0d4af
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue