]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wilc1000: rename pstrNext in struct message
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:34 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pstrNext to next 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 0e66a649f638805bfba3b6cf8a75549ed275711c..4d79a315662da7ff2dd683dda61b8cfa6015c38b 100644 (file)
@@ -38,7 +38,7 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
        }
 
        while (pHandle->pstrMessageList) {
-               struct message *pstrMessge = pHandle->pstrMessageList->pstrNext;
+               struct message *pstrMessge = pHandle->pstrMessageList->next;
 
                kfree(pHandle->pstrMessageList);
                pHandle->pstrMessageList = pstrMessge;
@@ -75,7 +75,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
                return -ENOMEM;
 
        pstrMessage->len = u32SendBufferSize;
-       pstrMessage->pstrNext = NULL;
+       pstrMessage->next = NULL;
        pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
                                   GFP_ATOMIC);
        if (!pstrMessage->buf) {
@@ -91,10 +91,10 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
        } else {
                struct message *pstrTailMsg = pHandle->pstrMessageList;
 
-               while (pstrTailMsg->pstrNext)
-                       pstrTailMsg = pstrTailMsg->pstrNext;
+               while (pstrTailMsg->next)
+                       pstrTailMsg = pstrTailMsg->next;
 
-               pstrTailMsg->pstrNext = pstrMessage;
+               pstrTailMsg->next = pstrMessage;
        }
 
        spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
@@ -154,7 +154,7 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
        memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
        *pu32ReceivedLength = pstrMessage->len;
 
-       pHandle->pstrMessageList = pstrMessage->pstrNext;
+       pHandle->pstrMessageList = pstrMessage->next;
 
        kfree(pstrMessage->buf);
        kfree(pstrMessage);
index b0ccd1de3765e1e5044566afba0f69da1fb22298..ec503c356ee387248b03bb630f675b841a213218 100644 (file)
@@ -16,7 +16,7 @@
 struct message {
        void *buf;
        u32 len;
-       struct message *pstrNext;
+       struct message *next;
 };
 
 typedef struct __MessageQueue_struct {