Skip to content

Commit

Permalink
mac80211: fix warn, enum may be used uninitialized
Browse files Browse the repository at this point in the history
regression introduced by b8d92c9

In function ‘ieee80211_work_rx_queued_mgmt’:
warning: ‘rma’ may be used uninitialized in this function

this re-adds default value WORK_ACT_NONE back to rma

Signed-off-by: Christoph Fritz <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
ch-f authored and linvjw committed Jun 16, 2010
1 parent d6a574f commit 021570e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/work.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ static void ieee80211_work_rx_queued_mgmt(struct ieee80211_local *local,
struct ieee80211_rx_status *rx_status;
struct ieee80211_mgmt *mgmt;
struct ieee80211_work *wk;
enum work_action rma;
enum work_action rma = WORK_ACT_NONE;
u16 fc;

rx_status = (struct ieee80211_rx_status *) skb->cb;
Expand Down

0 comments on commit 021570e

Please sign in to comment.