diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-10-31 15:53:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:10:16 -0500 |
commit | db4186cf15a5a7e8e8526f7c158f042ccc3ed576 (patch) | |
tree | 3523e80d077d4dc46825bc7ec6824f54dce75f0e /drivers/net/wireless/p54 | |
parent | e5ea92a7528d304e8e327d0d261653e98b163e8a (diff) |
p54: eliminate warning for uninitialized variable 'tim_len'
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>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 8423c430b71b..a2e2150403d2 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c | |||
@@ -1054,7 +1054,7 @@ static int p54_tx(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
1054 | struct p54_common *priv = dev->priv; | 1054 | struct p54_common *priv = dev->priv; |
1055 | struct p54_hdr *hdr; | 1055 | struct p54_hdr *hdr; |
1056 | struct p54_tx_data *txhdr; | 1056 | struct p54_tx_data *txhdr; |
1057 | size_t padding, len, tim_len; | 1057 | size_t padding, len, tim_len = 0; |
1058 | int i, j, ridx; | 1058 | int i, j, ridx; |
1059 | u16 hdr_flags = 0, aid = 0; | 1059 | u16 hdr_flags = 0, aid = 0; |
1060 | u8 rate, queue; | 1060 | u8 rate, queue; |