Skip to content

Commit

Permalink
mwifiex: remove redundant reset of cmd_wait_q status
Browse files Browse the repository at this point in the history
mwifiex_cancel_pending_ioctl is called only from
mwifiex_cmd_timeout_func. There the wait_q status is set to
-ETIMEDWAIT before calling this function. Whether we reset the status
to -1 or leave it at -ETIMEDWAIT at end doesn't matter since both
are != 0 hence mean failure

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Andreas Fenkart authored and Kalle Valo committed Aug 6, 2015
1 parent e3a3ef2 commit aeb0300
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/wireless/mwifiex/cmdevt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,6 @@ mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter)
}
}
}
adapter->cmd_wait_q.status = -1;
}

/*
Expand Down

0 comments on commit aeb0300

Please sign in to comment.