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

staging: wilc1000: rename u32Length in struct message

This patch renames u32Length to len to avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 78d50f94
...@@ -74,7 +74,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle, ...@@ -74,7 +74,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
if (!pstrMessage) if (!pstrMessage)
return -ENOMEM; return -ENOMEM;
pstrMessage->u32Length = u32SendBufferSize; pstrMessage->len = u32SendBufferSize;
pstrMessage->pstrNext = NULL; pstrMessage->pstrNext = NULL;
pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize, pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
GFP_ATOMIC); GFP_ATOMIC);
...@@ -142,7 +142,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, ...@@ -142,7 +142,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
return -EFAULT; return -EFAULT;
} }
/* check buffer size */ /* check buffer size */
if (u32RecvBufferSize < pstrMessage->u32Length) { if (u32RecvBufferSize < pstrMessage->len) {
spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
up(&pHandle->hSem); up(&pHandle->hSem);
PRINT_ER("u32RecvBufferSize overflow\n"); PRINT_ER("u32RecvBufferSize overflow\n");
...@@ -151,8 +151,8 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, ...@@ -151,8 +151,8 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
/* consume the message */ /* consume the message */
pHandle->u32ReceiversCount--; pHandle->u32ReceiversCount--;
memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->u32Length); memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
*pu32ReceivedLength = pstrMessage->u32Length; *pu32ReceivedLength = pstrMessage->len;
pHandle->pstrMessageList = pstrMessage->pstrNext; pHandle->pstrMessageList = pstrMessage->pstrNext;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
/* Message Queue type is a structure */ /* Message Queue type is a structure */
struct message { struct message {
void *buf; void *buf;
u32 u32Length; u32 len;
struct message *pstrNext; struct message *pstrNext;
}; };
......
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