Commit c700cab3 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: rename bExiting in struct message_queue

This patch renames bExiting to exiting to avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c09bb2e
...@@ -17,7 +17,7 @@ int wilc_mq_create(struct message_queue *pHandle) ...@@ -17,7 +17,7 @@ int wilc_mq_create(struct message_queue *pHandle)
sema_init(&pHandle->sem, 0); sema_init(&pHandle->sem, 0);
pHandle->pstrMessageList = NULL; pHandle->pstrMessageList = NULL;
pHandle->u32ReceiversCount = 0; pHandle->u32ReceiversCount = 0;
pHandle->bExiting = false; pHandle->exiting = false;
return 0; return 0;
} }
...@@ -29,7 +29,7 @@ int wilc_mq_create(struct message_queue *pHandle) ...@@ -29,7 +29,7 @@ int wilc_mq_create(struct message_queue *pHandle)
*/ */
int wilc_mq_destroy(struct message_queue *pHandle) int wilc_mq_destroy(struct message_queue *pHandle)
{ {
pHandle->bExiting = true; pHandle->exiting = true;
/* Release any waiting receiver thread. */ /* Release any waiting receiver thread. */
while (pHandle->u32ReceiversCount > 0) { while (pHandle->u32ReceiversCount > 0) {
...@@ -64,7 +64,7 @@ int wilc_mq_send(struct message_queue *pHandle, ...@@ -64,7 +64,7 @@ int wilc_mq_send(struct message_queue *pHandle,
return -EFAULT; return -EFAULT;
} }
if (pHandle->bExiting) { if (pHandle->exiting) {
PRINT_ER("pHandle fail\n"); PRINT_ER("pHandle fail\n");
return -EFAULT; return -EFAULT;
} }
...@@ -123,7 +123,7 @@ int wilc_mq_recv(struct message_queue *pHandle, ...@@ -123,7 +123,7 @@ int wilc_mq_recv(struct message_queue *pHandle,
return -EINVAL; return -EINVAL;
} }
if (pHandle->bExiting) { if (pHandle->exiting) {
PRINT_ER("pHandle fail\n"); PRINT_ER("pHandle fail\n");
return -EFAULT; return -EFAULT;
} }
......
...@@ -22,7 +22,7 @@ struct message { ...@@ -22,7 +22,7 @@ struct message {
struct message_queue { struct message_queue {
struct semaphore sem; struct semaphore sem;
spinlock_t lock; spinlock_t lock;
bool bExiting; bool exiting;
u32 u32ReceiversCount; u32 u32ReceiversCount;
struct message *pstrMessageList; struct message *pstrMessageList;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment