staging: wilc1000: rename u32Length in struct message
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:33 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames u32Length to len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_msgqueue.c
drivers/staging/wilc1000/wilc_msgqueue.h

index a4e612d51c67f57ef11d314e0cb6c73f8fa5eaf2..0e66a649f638805bfba3b6cf8a75549ed275711c 100644 (file)
@@ -74,7 +74,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
        if (!pstrMessage)
                return -ENOMEM;
 
-       pstrMessage->u32Length = u32SendBufferSize;
+       pstrMessage->len = u32SendBufferSize;
        pstrMessage->pstrNext = NULL;
        pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
                                   GFP_ATOMIC);
@@ -142,7 +142,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
                return -EFAULT;
        }
        /* check buffer size */
-       if (u32RecvBufferSize < pstrMessage->u32Length) {
+       if (u32RecvBufferSize < pstrMessage->len) {
                spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
                up(&pHandle->hSem);
                PRINT_ER("u32RecvBufferSize overflow\n");
@@ -151,8 +151,8 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
 
        /* consume the message */
        pHandle->u32ReceiversCount--;
-       memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->u32Length);
-       *pu32ReceivedLength = pstrMessage->u32Length;
+       memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
+       *pu32ReceivedLength = pstrMessage->len;
 
        pHandle->pstrMessageList = pstrMessage->pstrNext;
 
index 848ed827a4b4de5caf31e8831eb0abea0894794f..b0ccd1de3765e1e5044566afba0f69da1fb22298 100644 (file)
@@ -15,7 +15,7 @@
 /* Message Queue type is a structure */
 struct message {
        void *buf;
-       u32 u32Length;
+       u32 len;
        struct message *pstrNext;
 };