staging: wilc1000: rename pu32ReceivedLength in wilc_mq_recv
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:53 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pu32ReceivedLength to recv_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 c86bd7c6b72d3b89d725244c1b1d1a6bcaa1b79a..5601de86656fd0ece024668e77e081108ec7c6f4 100644 (file)
@@ -110,14 +110,13 @@ int wilc_mq_send(struct message_queue *mq,
  *  @version           1.0
  */
 int wilc_mq_recv(struct message_queue *mq,
-                void *recv_buf, u32 recv_buf_size,
-                u32 *pu32ReceivedLength)
+                void *recv_buf, u32 recv_buf_size, u32 *recv_len)
 {
        struct message *pstrMessage;
        unsigned long flags;
 
        if ((!mq) || (recv_buf_size == 0)
-           || (!recv_buf) || (!pu32ReceivedLength)) {
+           || (!recv_buf) || (!recv_len)) {
                PRINT_ER("mq or recv_buf is null\n");
                return -EINVAL;
        }
@@ -151,7 +150,7 @@ int wilc_mq_recv(struct message_queue *mq,
        /* consume the message */
        mq->recv_count--;
        memcpy(recv_buf, pstrMessage->buf, pstrMessage->len);
-       *pu32ReceivedLength = pstrMessage->len;
+       *recv_len = pstrMessage->len;
 
        mq->msg_list = pstrMessage->next;
 
index 3804b3bf4f018c8467748855e3807bcb1bbfea65..4f79ead933bae7e8897ef959c7017ffc8978043a 100644 (file)
@@ -77,8 +77,7 @@ int wilc_mq_send(struct message_queue *mq,
  *  @version           1.0
  */
 int wilc_mq_recv(struct message_queue *mq,
-                void *recv_buf, u32 recv_buf_size,
-                u32 *pu32ReceivedLength);
+                void *recv_buf, u32 recv_buf_size, u32 *recv_len);
 
 /*!
  *  @brief             Destroys an existing  Message queue