Commit 81e886e0 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: rename u32SendBufferSize in wilc_mq_send

This patch renames u32SendBufferSize to send_buf_size to avoid
camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 832f4fa5
...@@ -54,12 +54,12 @@ int wilc_mq_destroy(struct message_queue *mq) ...@@ -54,12 +54,12 @@ int wilc_mq_destroy(struct message_queue *mq)
* @version 1.0 * @version 1.0
*/ */
int wilc_mq_send(struct message_queue *mq, 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; unsigned long flags;
struct message *pstrMessage = NULL; 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"); PRINT_ER("mq or send_buf is null\n");
return -EFAULT; return -EFAULT;
} }
...@@ -74,9 +74,9 @@ int wilc_mq_send(struct message_queue *mq, ...@@ -74,9 +74,9 @@ int wilc_mq_send(struct message_queue *mq,
if (!pstrMessage) if (!pstrMessage)
return -ENOMEM; return -ENOMEM;
pstrMessage->len = u32SendBufferSize; pstrMessage->len = send_buf_size;
pstrMessage->next = NULL; pstrMessage->next = NULL;
pstrMessage->buf = kmemdup(send_buf, u32SendBufferSize, pstrMessage->buf = kmemdup(send_buf, send_buf_size,
GFP_ATOMIC); GFP_ATOMIC);
if (!pstrMessage->buf) { if (!pstrMessage->buf) {
kfree(pstrMessage); kfree(pstrMessage);
......
...@@ -58,7 +58,7 @@ int wilc_mq_create(struct message_queue *mq); ...@@ -58,7 +58,7 @@ int wilc_mq_create(struct message_queue *mq);
* @version 1.0 * @version 1.0
*/ */
int wilc_mq_send(struct message_queue *mq, 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 * @brief Receives a message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment