Message ID | 1442285621-29457-2-git-send-email-tony.cho@atmel.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kalle Valo |
Headers | show |
diff --git a/drivers/staging/wilc1000/wilc_errorsupport.h b/drivers/staging/wilc1000/wilc_errorsupport.h index 6012ec4..8eb8150 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