From: Leo Kim Date: Tue, 15 Sep 2015 02:53:35 +0000 (+0900) Subject: staging: wilc1000: remove definition WILC_IS_ERR X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~1972 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8fec2ee4fa58e57b835ab9bac67f04f091cf976d;p=karo-tx-linux.git staging: wilc1000: remove definition WILC_IS_ERR This patch removes the definition WILC_IS_ERR which is not used anymore. Signed-off-by: Leo Kim Signed-off-by: Tony Cho Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_errorsupport.h b/drivers/staging/wilc1000/wilc_errorsupport.h index 6012ec4dfce0..8eb8150d5213 100644 --- a/drivers/staging/wilc1000/wilc_errorsupport.h +++ b/drivers/staging/wilc1000/wilc_errorsupport.h @@ -37,10 +37,9 @@ -#define WILC_IS_ERR(__status__) (__status__ < WILC_SUCCESS) #define WILC_ERRORCHECK(__status__) do { \ - if (WILC_IS_ERR(__status__)) { \ + if (__status__ < WILC_SUCCESS) { \ PRINT_ER("PRINT_ER(%d)\n", __status__); \ goto ERRORHANDLER; \ } \ @@ -60,6 +59,6 @@ #define WILC_CATCH(__status__) \ ERRORHANDLER: \ - if (WILC_IS_ERR(__status__)) \ + if (__status__ < WILC_SUCCESS) \ #endif