diff options
author | Dean Lee | 2015-06-12 07:11:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-06-12 07:37:18 +0200 |
commit | 72ed4dc73dd7e67bdf37266e5d188fd01bcb32e1 (patch) | |
tree | 9d115810aa68d4bcef20dfc0bae6f1bf6a618b47 /drivers/staging/wilc1000/wilc_msgqueue.c | |
parent | staging: wilc1000: remove unused typedef (diff) | |
download | kernel-qcow2-linux-72ed4dc73dd7e67bdf37266e5d188fd01bcb32e1.tar.gz kernel-qcow2-linux-72ed4dc73dd7e67bdf37266e5d188fd01bcb32e1.tar.xz kernel-qcow2-linux-72ed4dc73dd7e67bdf37266e5d188fd01bcb32e1.zip |
staging: wilc1000: change WILC_BOOL to bool
change own data type(WILC_BOOL) to common data type(bool)
but that's contain true/false value. so change with them.
Signed-off-by: Dean Lee <dean.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_msgqueue.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_msgqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 8531bf1adb78..04fe5a59de5c 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -15,7 +15,7 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle, sema_init(&pHandle->hSem, 0); pHandle->pstrMessageList = NULL; pHandle->u32ReceiversCount = 0; - pHandle->bExiting = WILC_FALSE; + pHandle->bExiting = false; return WILC_SUCCESS; } @@ -29,7 +29,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle, tstrWILC_MsgQueueAttrs *pstrAttrs) { - pHandle->bExiting = WILC_TRUE; + pHandle->bExiting = true; /* Release any waiting receiver thread. */ while (pHandle->u32ReceiversCount > 0) { @@ -64,7 +64,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT); } - if (pHandle->bExiting == WILC_TRUE) { + if (pHandle->bExiting == true) { WILC_ERRORREPORT(s32RetStatus, WILC_FAIL); } @@ -131,7 +131,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle, WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT); } - if (pHandle->bExiting == WILC_TRUE) { + if (pHandle->bExiting == true) { WILC_ERRORREPORT(s32RetStatus, WILC_FAIL); } |