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

staging: wilc1000: rename pstrNext in struct message

This patch renames pstrNext to next to avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3ff0580
...@@ -38,7 +38,7 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle) ...@@ -38,7 +38,7 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
} }
while (pHandle->pstrMessageList) { while (pHandle->pstrMessageList) {
struct message *pstrMessge = pHandle->pstrMessageList->pstrNext; struct message *pstrMessge = pHandle->pstrMessageList->next;
kfree(pHandle->pstrMessageList); kfree(pHandle->pstrMessageList);
pHandle->pstrMessageList = pstrMessge; pHandle->pstrMessageList = pstrMessge;
...@@ -75,7 +75,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, ...@@ -75,7 +75,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
return -ENOMEM; return -ENOMEM;
pstrMessage->len = u32SendBufferSize; pstrMessage->len = u32SendBufferSize;
pstrMessage->pstrNext = NULL; pstrMessage->next = NULL;
pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize, pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
GFP_ATOMIC); GFP_ATOMIC);
if (!pstrMessage->buf) { if (!pstrMessage->buf) {
...@@ -91,10 +91,10 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, ...@@ -91,10 +91,10 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
} else { } else {
struct message *pstrTailMsg = pHandle->pstrMessageList; struct message *pstrTailMsg = pHandle->pstrMessageList;
while (pstrTailMsg->pstrNext) while (pstrTailMsg->next)
pstrTailMsg = pstrTailMsg->pstrNext; pstrTailMsg = pstrTailMsg->next;
pstrTailMsg->pstrNext = pstrMessage; pstrTailMsg->next = pstrMessage;
} }
spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
...@@ -154,7 +154,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, ...@@ -154,7 +154,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len); memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
*pu32ReceivedLength = pstrMessage->len; *pu32ReceivedLength = pstrMessage->len;
pHandle->pstrMessageList = pstrMessage->pstrNext; pHandle->pstrMessageList = pstrMessage->next;
kfree(pstrMessage->buf); kfree(pstrMessage->buf);
kfree(pstrMessage); kfree(pstrMessage);
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
struct message { struct message {
void *buf; void *buf;
u32 len; u32 len;
struct message *pstrNext; struct message *next;
}; };
typedef struct __MessageQueue_struct { typedef struct __MessageQueue_struct {
......
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