diff options
author | Joe Perches <joe@perches.com> | 2011-01-27 20:04:20 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-31 13:53:11 -0800 |
commit | 509c9d973055e3d98c0d2aa2cb40c9139526fd74 (patch) | |
tree | 0512699e6c58b2712bd1e2122ea68f6972b0f65a /drivers/staging/ath6kl/include/common/athdefs.h | |
parent | 1f4c34bded914e81b4388ccfdfab8a31da5ab0c3 (diff) | |
download | op-kernel-dev-509c9d973055e3d98c0d2aa2cb40c9139526fd74.zip op-kernel-dev-509c9d973055e3d98c0d2aa2cb40c9139526fd74.tar.gz |
staging: ath6kl: Remove A_SUCCESS macro
Remove obfuscating A_SUCCESS(foo) macro.
Just test for !foo instead.
Reformat a few macros that used A_SUCCESS for better readability.
Add do { foo } while (0) surrounds to those macros too.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Vipin Mehta <vipin.mehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ath6kl/include/common/athdefs.h')
-rw-r--r-- | drivers/staging/ath6kl/include/common/athdefs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/ath6kl/include/common/athdefs.h b/drivers/staging/ath6kl/include/common/athdefs.h index 2cd0720..ef60754 100644 --- a/drivers/staging/ath6kl/include/common/athdefs.h +++ b/drivers/staging/ath6kl/include/common/athdefs.h @@ -73,8 +73,7 @@ #define A_PHY_ERROR 27 /* RX PHY error */ #define A_CONSUMED 28 /* Object was consumed */ -#define A_SUCCESS(x) (x == A_OK) -#define A_FAILED(x) (!A_SUCCESS(x)) +#define A_FAILED(x) (!!x) #ifndef TRUE #define TRUE 1 |