staging: wilc1000: wilc_msgqueue.c: fix bool comparison style
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 19 Aug 2015 06:59:03 +0000 (15:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:29 +0000 (18:24 -0700)
This patch changes bool comparison style found by checkpatch.pl
CHECK: Using comparison to true is error prone

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 d97dd70..f974f85 100644 (file)
@@ -61,7 +61,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,
                WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT);
        }
 
-       if (pHandle->bExiting == true) {
+       if (pHandle->bExiting) {
                WILC_ERRORREPORT(s32RetStatus, WILC_FAIL);
        }
 
@@ -123,7 +123,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,
                WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT);
        }
 
-       if (pHandle->bExiting == true) {
+       if (pHandle->bExiting) {
                WILC_ERRORREPORT(s32RetStatus, WILC_FAIL);
        }