]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mac80211: fix warn, enum may be used uninitialized
authorChristoph Fritz <chf.fritz@googlemail.com>
Wed, 16 Jun 2010 14:37:34 +0000 (16:37 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Jun 2010 19:49:16 +0000 (15:49 -0400)
regression introduced by b8d92c9c141ee3dc9b3537b1f0ffb4a54ea8d9b2

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 <chf.fritz@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/work.c

index be3d4a698692d1ce958b695c1e1676297b1d15cd..b025dc7bb0fd4e1decb356709cb3ac5d3163db58 100644 (file)
@@ -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;