staging: wilc1000: rename u32RecvBufferSize in wilc_mq_recv

This patch renames u32RecvBufferSize to recv_buf_size to avoid
camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chaehyun Lim 2016-01-21 20:30:52 +09:00 committed by Greg Kroah-Hartman
parent f034b01ea6
commit e8f2d1f19c
2 changed files with 5 additions and 5 deletions

View File

@ -110,13 +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 u32RecvBufferSize,
void *recv_buf, u32 recv_buf_size,
u32 *pu32ReceivedLength)
{
struct message *pstrMessage;
unsigned long flags;
if ((!mq) || (u32RecvBufferSize == 0)
if ((!mq) || (recv_buf_size == 0)
|| (!recv_buf) || (!pu32ReceivedLength)) {
PRINT_ER("mq or recv_buf is null\n");
return -EINVAL;
@ -141,10 +141,10 @@ int wilc_mq_recv(struct message_queue *mq,
return -EFAULT;
}
/* check buffer size */
if (u32RecvBufferSize < pstrMessage->len) {
if (recv_buf_size < pstrMessage->len) {
spin_unlock_irqrestore(&mq->lock, flags);
up(&mq->sem);
PRINT_ER("u32RecvBufferSize overflow\n");
PRINT_ER("recv_buf_size overflow\n");
return -EOVERFLOW;
}

View File

@ -77,7 +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 u32RecvBufferSize,
void *recv_buf, u32 recv_buf_size,
u32 *pu32ReceivedLength);
/*!