diff options
author | Leo Kim | 2015-09-16 11:36:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-09-17 06:38:17 +0200 |
commit | 7dc1d0cc1ffa29aa11219ad7e31ae5f4dc443711 (patch) | |
tree | 5711bf94c18ca6d2cf0bae404cf8f806e851583f /drivers/staging/wilc1000/wilc_msgqueue.c | |
parent | staging: wilc1000: remove a macro WILC_NULLCHECK (diff) | |
download | kernel-qcow2-linux-7dc1d0cc1ffa29aa11219ad7e31ae5f4dc443711.tar.gz kernel-qcow2-linux-7dc1d0cc1ffa29aa11219ad7e31ae5f4dc443711.tar.xz kernel-qcow2-linux-7dc1d0cc1ffa29aa11219ad7e31ae5f4dc443711.zip |
staging: wilc1000: remove the macro WILC_ERRORCHECK
This patch removes the macro WILC_ERRORCHECK which is not used
anymore by replacing it with the plain statements.
This patch also removes the WILC_CATCH macros from some of functions not
to make the build warnings.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index ac237365e3e9..53b6f07a60c2 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -145,7 +145,10 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle, spin_unlock_irqrestore(&pHandle->strCriticalSection, flags); } else { /* other non-timeout scenarios */ - WILC_ERRORCHECK(s32RetStatus); + if (s32RetStatus) { + PRINT_ER("Non-timeout\n"); + return s32RetStatus; + } if (pHandle->bExiting) { WILC_ERRORREPORT(s32RetStatus, WILC_FAIL); |