From: Chaehyun Lim Date: Wed, 19 Aug 2015 06:59:03 +0000 (+0900) Subject: staging: wilc1000: wilc_msgqueue.c: fix bool comparison style X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bb9c2e7a9d04f74746256f033fd78cff2df0a5db;p=linux-beck.git staging: wilc1000: wilc_msgqueue.c: fix bool comparison style This patch changes bool comparison style found by checkpatch.pl CHECK: Using comparison to true is error prone Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index d97dd705da5a..f974f859b1a8 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -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); }