staging: wilc1000: rename u32SendBufferSize in wilc_mq_send
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:46 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames u32SendBufferSize to send_buf_size 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 5feb87c88e0dffcb1e7208d00b634b17913f2699..8e37cff02f9d63f58a23b48959db7ac04b37872a 100644 (file)
@@ -54,12 +54,12 @@ int wilc_mq_destroy(struct message_queue *mq)
  *  @version           1.0
  */
 int wilc_mq_send(struct message_queue *mq,
-                const void *send_buf, u32 u32SendBufferSize)
+                const void *send_buf, u32 send_buf_size)
 {
        unsigned long flags;
        struct message *pstrMessage = NULL;
 
-       if ((!mq) || (u32SendBufferSize == 0) || (!send_buf)) {
+       if ((!mq) || (send_buf_size == 0) || (!send_buf)) {
                PRINT_ER("mq or send_buf is null\n");
                return -EFAULT;
        }
@@ -74,9 +74,9 @@ int wilc_mq_send(struct message_queue *mq,
        if (!pstrMessage)
                return -ENOMEM;
 
-       pstrMessage->len = u32SendBufferSize;
+       pstrMessage->len = send_buf_size;
        pstrMessage->next = NULL;
-       pstrMessage->buf = kmemdup(send_buf, u32SendBufferSize,
+       pstrMessage->buf = kmemdup(send_buf, send_buf_size,
                                   GFP_ATOMIC);
        if (!pstrMessage->buf) {
                kfree(pstrMessage);
index 3adee906c5178498acb0787828f4c31a965450c6..70e1be11a700ed4d5bc3f6a94ce54ac80208f343 100644 (file)
@@ -58,7 +58,7 @@ int wilc_mq_create(struct message_queue *mq);
  *  @version           1.0
  */
 int wilc_mq_send(struct message_queue *mq,
-                const void *send_buf, u32 u32SendBufferSize);
+                const void *send_buf, u32 send_buf_size);
 
 /*!
  *  @brief             Receives a message