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

staging: wilc1000: rename pHandle in wilc_mq_destroy

This patch renames pHandle to mq to avoid camelcase
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cc08b4f
...@@ -27,21 +27,21 @@ int wilc_mq_create(struct message_queue *mq) ...@@ -27,21 +27,21 @@ int wilc_mq_create(struct message_queue *mq)
* @note copied from FLO glue implementatuion * @note copied from FLO glue implementatuion
* @version 1.0 * @version 1.0
*/ */
int wilc_mq_destroy(struct message_queue *pHandle) int wilc_mq_destroy(struct message_queue *mq)
{ {
pHandle->exiting = true; mq->exiting = true;
/* Release any waiting receiver thread. */ /* Release any waiting receiver thread. */
while (pHandle->recv_count > 0) { while (mq->recv_count > 0) {
up(&pHandle->sem); up(&mq->sem);
pHandle->recv_count--; mq->recv_count--;
} }
while (pHandle->msg_list) { while (mq->msg_list) {
struct message *pstrMessge = pHandle->msg_list->next; struct message *pstrMessge = mq->msg_list->next;
kfree(pHandle->msg_list); kfree(mq->msg_list);
pHandle->msg_list = pstrMessge; mq->msg_list = pstrMessge;
} }
return 0; return 0;
......
...@@ -89,6 +89,6 @@ int wilc_mq_recv(struct message_queue *pHandle, ...@@ -89,6 +89,6 @@ int wilc_mq_recv(struct message_queue *pHandle,
* @date 30 Aug 2010 * @date 30 Aug 2010
* @version 1.0 * @version 1.0
*/ */
int wilc_mq_destroy(struct message_queue *pHandle); int wilc_mq_destroy(struct message_queue *mq);
#endif #endif
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