]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
p54: eliminate warning for uninitialized variable 'tim_len'
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 19:53:12 +0000 (15:53 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Nov 2008 20:10:16 +0000 (15:10 -0500)
drivers/net/wireless/p54/p54common.c: In function ‘p54_tx’:
drivers/net/wireless/p54/p54common.c:1058: warning: ‘tim_len’ may be used uninitialized in this function

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54common.c

index 8423c430b71bd849323026e04fb82c38a17d904a..a2e2150403d2365b0d021d22034bb406680dccbe 100644 (file)
@@ -1054,7 +1054,7 @@ static int p54_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
        struct p54_common *priv = dev->priv;
        struct p54_hdr *hdr;
        struct p54_tx_data *txhdr;
-       size_t padding, len, tim_len;
+       size_t padding, len, tim_len = 0;
        int i, j, ridx;
        u16 hdr_flags = 0, aid = 0;
        u8 rate, queue;