diff options
author | Bing Zhao <bzhao@marvell.com> | 2013-03-04 19:27:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-06 16:29:09 -0500 |
commit | 9931078e36bd2caa3d5364cab31a893d50a8b5de (patch) | |
tree | 945a2f38e2ba8f208b41d3fa38eb5bd40e2697fd /drivers/net/wireless/mwifiex | |
parent | 8509e82064319d175192837355a92653e1517798 (diff) |
mwifiex: avoid [-Wmaybe-uninitialized] warnings in pcie.c
drivers/net/wireless/mwifiex/pcie.c:1157:9: warning:
'desc2' may be used uninitialized in this function
[-Wmaybe-uninitialized]
drivers/net/wireless/mwifiex/pcie.c:1048:31: note:
'desc2' was declared here
drivers/net/wireless/mwifiex/pcie.c:1159:9: warning:
'desc' may be used uninitialized in this function
[-Wmaybe-uninitialized]
drivers/net/wireless/mwifiex/pcie.c:1047:32: note:
'desc' was declared here
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index cf7bdf424d05..b813a27ee613 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c | |||
@@ -1030,8 +1030,8 @@ mwifiex_pcie_send_data(struct mwifiex_adapter *adapter, struct sk_buff *skb, | |||
1030 | u32 wrindx, num_tx_buffs, rx_val; | 1030 | u32 wrindx, num_tx_buffs, rx_val; |
1031 | int ret; | 1031 | int ret; |
1032 | dma_addr_t buf_pa; | 1032 | dma_addr_t buf_pa; |
1033 | struct mwifiex_pcie_buf_desc *desc; | 1033 | struct mwifiex_pcie_buf_desc *desc = NULL; |
1034 | struct mwifiex_pfu_buf_desc *desc2; | 1034 | struct mwifiex_pfu_buf_desc *desc2 = NULL; |
1035 | __le16 *tmp; | 1035 | __le16 *tmp; |
1036 | 1036 | ||
1037 | if (!(skb->data && skb->len)) { | 1037 | if (!(skb->data && skb->len)) { |