mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 14:40:12 -04:00
staging: wilc1000: remove redundant check in wilc_mq_recv
At the beginning of wilc_mq_recv, it is checked if pHandle->bExiting is false or true. There is no need to check it again at the middle of this function. So just remove it. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ce7b516f3f
commit
eec826439d
@@ -133,12 +133,6 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
|
||||
spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
|
||||
|
||||
down(&pHandle->hSem);
|
||||
|
||||
if (pHandle->bExiting) {
|
||||
PRINT_ER("pHandle fail\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&pHandle->strCriticalSection, flags);
|
||||
|
||||
pstrMessage = pHandle->pstrMessageList;
|
||||
|
||||
Reference in New Issue
Block a user