Skip to content

Commit a85198c

Browse files
Su HuiKalle Valo
authored andcommitted
wifi: mwifiex: mwifiex_process_sleep_confirm_resp(): remove unused priv variable
Clang static analyzer complains that value stored to 'priv' is never read. 'priv' is useless, so remove it to save space. Signed-off-by: Su Hui <[email protected]> Acked-by: Brian Norris <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c212abf commit a85198c

File tree

1 file changed

+0
-8
lines changed
  • drivers/net/wireless/marvell/mwifiex

1 file changed

+0
-8
lines changed

drivers/net/wireless/marvell/mwifiex/cmdevt.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,8 +1244,6 @@ mwifiex_process_sleep_confirm_resp(struct mwifiex_adapter *adapter,
12441244
u8 *pbuf, u32 upld_len)
12451245
{
12461246
struct host_cmd_ds_command *cmd = (struct host_cmd_ds_command *) pbuf;
1247-
struct mwifiex_private *priv =
1248-
mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY);
12491247
uint16_t result = le16_to_cpu(cmd->result);
12501248
uint16_t command = le16_to_cpu(cmd->command);
12511249
uint16_t seq_num = le16_to_cpu(cmd->seq_num);
@@ -1260,12 +1258,6 @@ mwifiex_process_sleep_confirm_resp(struct mwifiex_adapter *adapter,
12601258
"cmd: CMD_RESP: 0x%x, result %d, len %d, seqno 0x%x\n",
12611259
command, result, le16_to_cpu(cmd->size), seq_num);
12621260

1263-
/* Get BSS number and corresponding priv */
1264-
priv = mwifiex_get_priv_by_id(adapter, HostCmd_GET_BSS_NO(seq_num),
1265-
HostCmd_GET_BSS_TYPE(seq_num));
1266-
if (!priv)
1267-
priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY);
1268-
12691261
/* Update sequence number */
12701262
seq_num = HostCmd_GET_SEQ_NO(seq_num);
12711263
/* Clear RET_BIT from HostCmd */

0 commit comments

Comments
 (0)