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

staging: wilc1000: rename pvRecvBuffer in wilc_mq_recv

This patch renames pvRecvBuffer to recv_buf to avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 24752783
......@@ -110,15 +110,15 @@ int wilc_mq_send(struct message_queue *mq,
* @version 1.0
*/
int wilc_mq_recv(struct message_queue *mq,
void *pvRecvBuffer, u32 u32RecvBufferSize,
void *recv_buf, u32 u32RecvBufferSize,
u32 *pu32ReceivedLength)
{
struct message *pstrMessage;
unsigned long flags;
if ((!mq) || (u32RecvBufferSize == 0)
|| (!pvRecvBuffer) || (!pu32ReceivedLength)) {
PRINT_ER("mq or pvRecvBuffer is null\n");
|| (!recv_buf) || (!pu32ReceivedLength)) {
PRINT_ER("mq or recv_buf is null\n");
return -EINVAL;
}
......@@ -150,7 +150,7 @@ int wilc_mq_recv(struct message_queue *mq,
/* consume the message */
mq->recv_count--;
memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
memcpy(recv_buf, pstrMessage->buf, pstrMessage->len);
*pu32ReceivedLength = pstrMessage->len;
mq->msg_list = pstrMessage->next;
......
......@@ -77,7 +77,7 @@ int wilc_mq_send(struct message_queue *mq,
* @version 1.0
*/
int wilc_mq_recv(struct message_queue *mq,
void *pvRecvBuffer, u32 u32RecvBufferSize,
void *recv_buf, u32 u32RecvBufferSize,
u32 *pu32ReceivedLength);
/*!
......
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