aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl/hif
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-01-27 23:04:20 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-31 16:53:11 -0500
commit509c9d973055e3d98c0d2aa2cb40c9139526fd74 (patch)
tree0512699e6c58b2712bd1e2122ea68f6972b0f65a /drivers/staging/ath6kl/hif
parent1f4c34bded914e81b4388ccfdfab8a31da5ab0c3 (diff)
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/hif')
-rw-r--r--drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
index 61166a5cb02..56f6a07117a 100644
--- a/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
+++ b/drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c
@@ -1120,7 +1120,7 @@ static int hifDeviceResume(struct device *dev)
1120 } 1120 }
1121 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: -hifDeviceResume\n")); 1121 AR_DEBUG_PRINTF(ATH_DEBUG_TRACE, ("AR6000: -hifDeviceResume\n"));
1122 1122
1123 return A_SUCCESS(status) ? 0 : status; 1123 return status;
1124} 1124}
1125#endif /* CONFIG_PM */ 1125#endif /* CONFIG_PM */
1126 1126
@@ -1167,7 +1167,7 @@ int hifWaitForPendingRecv(HIF_DEVICE *device)
1167 status = HIFReadWrite(device, HOST_INT_STATUS_ADDRESS, 1167 status = HIFReadWrite(device, HOST_INT_STATUS_ADDRESS,
1168 (A_UINT8 *)&host_int_status, sizeof(host_int_status), 1168 (A_UINT8 *)&host_int_status, sizeof(host_int_status),
1169 HIF_RD_SYNC_BYTE_INC, NULL); 1169 HIF_RD_SYNC_BYTE_INC, NULL);
1170 host_int_status = A_SUCCESS(status) ? (host_int_status & (1 << 0)) : 0; 1170 host_int_status = !status ? (host_int_status & (1 << 0)) : 0;
1171 if (host_int_status) { 1171 if (host_int_status) {
1172 schedule(); /* schedule for next dsrHandler */ 1172 schedule(); /* schedule for next dsrHandler */
1173 } 1173 }