staging: wilc1000: rename pvBuffer in struct message
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:32 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pvBuffer to buf 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 9b78fcd1291f8b785b5523b2b2d2dcb14c89276f..a4e612d51c67f57ef11d314e0cb6c73f8fa5eaf2 100644 (file)
@@ -76,9 +76,9 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
 
        pstrMessage->u32Length = u32SendBufferSize;
        pstrMessage->pstrNext = NULL;
-       pstrMessage->pvBuffer = kmemdup(pvSendBuffer, u32SendBufferSize,
-                                       GFP_ATOMIC);
-       if (!pstrMessage->pvBuffer) {
+       pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
+                                  GFP_ATOMIC);
+       if (!pstrMessage->buf) {
                kfree(pstrMessage);
                return -ENOMEM;
        }
@@ -151,12 +151,12 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
 
        /* consume the message */
        pHandle->u32ReceiversCount--;
-       memcpy(pvRecvBuffer, pstrMessage->pvBuffer, pstrMessage->u32Length);
+       memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->u32Length);
        *pu32ReceivedLength = pstrMessage->u32Length;
 
        pHandle->pstrMessageList = pstrMessage->pstrNext;
 
-       kfree(pstrMessage->pvBuffer);
+       kfree(pstrMessage->buf);
        kfree(pstrMessage);
 
        spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
index 1a7c652df1194af6c71d10dbc57f180134323a90..848ed827a4b4de5caf31e8831eb0abea0894794f 100644 (file)
@@ -14,7 +14,7 @@
 
 /* Message Queue type is a structure */
 struct message {
-       void *pvBuffer;
+       void *buf;
        u32 u32Length;
        struct message *pstrNext;
 };