]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: rename pstrTailMsg in wilc_mq_send
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:48 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pstrTailMsg to tail_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 9a80fe694822345e3569495c226d586af26116a1..764723f999960c64aa78726c897e77fe46b39853 100644 (file)
@@ -88,12 +88,12 @@ int wilc_mq_send(struct message_queue *mq,
        if (!mq->msg_list) {
                mq->msg_list  = new_msg;
        } else {
-               struct message *pstrTailMsg = mq->msg_list;
+               struct message *tail_msg = mq->msg_list;
 
-               while (pstrTailMsg->next)
-                       pstrTailMsg = pstrTailMsg->next;
+               while (tail_msg->next)
+                       tail_msg = tail_msg->next;
 
-               pstrTailMsg->next = new_msg;
+               tail_msg->next = new_msg;
        }
 
        spin_unlock_irqrestore(&mq->lock, flags);