]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wilc1000: wilc_msgqueue.c: remove unnecessary parentheses
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 19 Aug 2015 06:59:00 +0000 (15:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:28 +0000 (18:24 -0700)
This patch remove unnecessary parentheses found by checkpatch.pl
CHECK: Unnecessary parentheses around pHandle->hSem

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 8cb74d16f8e08c06e827d73e0150693c0b1ccebb..53ce586d96b3066ac9287a25037ffca35b87d893 100644 (file)
@@ -30,7 +30,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle)
 
        /* Release any waiting receiver thread. */
        while (pHandle->u32ReceiversCount > 0) {
-               up(&(pHandle->hSem));
+               up(&pHandle->hSem);
                pHandle->u32ReceiversCount--;
        }
 
@@ -133,7 +133,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,
        pHandle->u32ReceiversCount++;
        spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
 
-       down(&(pHandle->hSem));
+       down(&pHandle->hSem);
 
        if (s32RetStatus == WILC_TIMEOUT) {
                /* timed out, just exit without consumeing the message */