diff options
author | Chaehyun Lim | 2015-08-18 16:18:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-09-13 03:24:28 +0200 |
commit | 8dfaafd6398ec49797566ecb6992117434376588 (patch) | |
tree | 49dabfb2f63ef1c67b704814b1606d4615447e22 /drivers/staging/wilc1000/wilc_msgqueue.c | |
parent | staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memor... (diff) | |
download | kernel-qcow2-linux-8dfaafd6398ec49797566ecb6992117434376588.tar.gz kernel-qcow2-linux-8dfaafd6398ec49797566ecb6992117434376588.tar.xz kernel-qcow2-linux-8dfaafd6398ec49797566ecb6992117434376588.zip |
staging: wilc1000: add a blank line after declaration
This patch adds a blank line after declaration found by checkpatch.pl
WARNING: Missing a blank line after declarations.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_msgqueue.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_msgqueue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 70e4fa6a07a6..f047d6228a7b 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -37,6 +37,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle) while (pHandle->pstrMessageList != NULL) { Message *pstrMessge = pHandle->pstrMessageList->pstrNext; + kfree(pHandle->pstrMessageList); pHandle->pstrMessageList = pstrMessge; } @@ -82,6 +83,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, pHandle->pstrMessageList = pstrMessage; } else { Message *pstrTailMsg = pHandle->pstrMessageList; + while (pstrTailMsg->pstrNext != NULL) { pstrTailMsg = pstrTailMsg->pstrNext; } @@ -122,6 +124,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle, Message *pstrMessage; WILC_ErrNo s32RetStatus = WILC_SUCCESS; unsigned long flags; + if ((pHandle == NULL) || (u32RecvBufferSize == 0) || (pvRecvBuffer == NULL) || (pu32ReceivedLength == NULL)) { WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT); |