Skip to content

Commit

Permalink
libertas: fix mode initialization problem
Browse files Browse the repository at this point in the history
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 <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and John W. Linville committed Apr 8, 2008
1 parent bfe87db commit 877cb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 877cb0d

Please sign in to comment.