]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: wilc1000: remove redundant check in wilc_mq_recv
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 20 Jan 2016 07:44:57 +0000 (16:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:20:15 +0000 (15:20 -0800)
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>
drivers/staging/wilc1000/wilc_msgqueue.c

index 098390cdf31995a0bfcc8c74b0af746a0196c1fa..abc780c7686c26c2b54eaeff7886657fa053a7cb 100644 (file)
@@ -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;