Commit 67dd2a75 authored by Kirtika Ruchandani's avatar Kirtika Ruchandani Committed by Kalle Valo

mwifiex: Removed unused 'pkt_type' variable

Commit 92263a84 introduced mwifiex_deaggr_sdio_pkt which initializes
variable pkt_type but does not use it. Compiling with W=1 gives the following
warning, fix it.
mwifiex/sdio.c: In function ‘mwifiex_deaggr_sdio_pkt’:
mwifiex/sdio.c:1198:6: warning: variable ‘pkt_type’ set but not used [-Wunused-but-set-variable]

Fixes: 92263a84 ("mwifiex: add SDIO rx single port aggregation")
Cc: Zhaoyang Liu <liuzy@marvell.com>
Cc: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKirtika Ruchandani <kirtika@google.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent e9f1db8b
...@@ -1135,7 +1135,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter, ...@@ -1135,7 +1135,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter,
{ {
u32 total_pkt_len, pkt_len; u32 total_pkt_len, pkt_len;
struct sk_buff *skb_deaggr; struct sk_buff *skb_deaggr;
u32 pkt_type;
u16 blk_size; u16 blk_size;
u8 blk_num; u8 blk_num;
u8 *data; u8 *data;
...@@ -1156,8 +1155,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter, ...@@ -1156,8 +1155,6 @@ static void mwifiex_deaggr_sdio_pkt(struct mwifiex_adapter *adapter,
break; break;
} }
pkt_len = le16_to_cpu(*(__le16 *)(data + SDIO_HEADER_OFFSET)); pkt_len = le16_to_cpu(*(__le16 *)(data + SDIO_HEADER_OFFSET));
pkt_type = le16_to_cpu(*(__le16 *)(data + SDIO_HEADER_OFFSET +
2));
if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) { if ((pkt_len + SDIO_HEADER_OFFSET) > blk_size) {
mwifiex_dbg(adapter, ERROR, mwifiex_dbg(adapter, ERROR,
"%s: error in pkt_len,\t" "%s: error in pkt_len,\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment