staging: wilc1000: rename pstrMessage in wilc_mq_send
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:47 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pstrMessage to new_msg 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

index 8e37cff02f9d63f58a23b48959db7ac04b37872a..9a80fe694822345e3569495c226d586af26116a1 100644 (file)
@@ -57,7 +57,7 @@ int wilc_mq_send(struct message_queue *mq,
                 const void *send_buf, u32 send_buf_size)
 {
        unsigned long flags;
-       struct message *pstrMessage = NULL;
+       struct message *new_msg = NULL;
 
        if ((!mq) || (send_buf_size == 0) || (!send_buf)) {
                PRINT_ER("mq or send_buf is null\n");
@@ -70,16 +70,15 @@ int wilc_mq_send(struct message_queue *mq,
        }
 
        /* construct a new message */
-       pstrMessage = kmalloc(sizeof(struct message), GFP_ATOMIC);
-       if (!pstrMessage)
+       new_msg = kmalloc(sizeof(struct message), GFP_ATOMIC);
+       if (!new_msg)
                return -ENOMEM;
 
-       pstrMessage->len = send_buf_size;
-       pstrMessage->next = NULL;
-       pstrMessage->buf = kmemdup(send_buf, send_buf_size,
-                                  GFP_ATOMIC);
-       if (!pstrMessage->buf) {
-               kfree(pstrMessage);
+       new_msg->len = send_buf_size;
+       new_msg->next = NULL;
+       new_msg->buf = kmemdup(send_buf, send_buf_size, GFP_ATOMIC);
+       if (!new_msg->buf) {
+               kfree(new_msg);
                return -ENOMEM;
        }
 
@@ -87,14 +86,14 @@ int wilc_mq_send(struct message_queue *mq,
 
        /* add it to the message queue */
        if (!mq->msg_list) {
-               mq->msg_list  = pstrMessage;
+               mq->msg_list  = new_msg;
        } else {
                struct message *pstrTailMsg = mq->msg_list;
 
                while (pstrTailMsg->next)
                        pstrTailMsg = pstrTailMsg->next;
 
-               pstrTailMsg->next = pstrMessage;
+               pstrTailMsg->next = new_msg;
        }
 
        spin_unlock_irqrestore(&mq->lock, flags);