summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorKalle Valo2012-03-07 19:03:57 +0100
committerKalle Valo2012-03-07 19:03:57 +0100
commitc650538f5dbb433f3438e7fcb0090c6d617b4a0e (patch)
treedbff767b70799a6687f78a8bb723a0062f57ff68 /drivers/net
parentath6kl: fix pointer style (diff)
downloadkernel-qcow2-linux-c650538f5dbb433f3438e7fcb0090c6d617b4a0e.tar.gz
kernel-qcow2-linux-c650538f5dbb433f3438e7fcb0090c6d617b4a0e.tar.xz
kernel-qcow2-linux-c650538f5dbb433f3438e7fcb0090c6d617b4a0e.zip
ath6kl: fix checkpatch error with EPSTAT() macro
ath6kl/debug.c:739: ERROR: Macros with complex values should be enclosed in parenthesis Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rwxr-xr-xdrivers/net/wireless/ath/ath6kl/debug.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c
index 56e1cb170299..4bebf8eb23d3 100755
--- a/drivers/net/wireless/ath/ath6kl/debug.c
+++ b/drivers/net/wireless/ath/ath6kl/debug.c
@@ -740,9 +740,13 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file,
return -ENOMEM;
#define EPSTAT(name) \
- len = print_endpoint_stat(target, buf, buf_len, len, \
- offsetof(struct htc_endpoint_stats, name), \
- #name)
+ do { \
+ len = print_endpoint_stat(target, buf, buf_len, len, \
+ offsetof(struct htc_endpoint_stats, \
+ name), \
+ #name); \
+ } while (0)
+
EPSTAT(cred_low_indicate);
EPSTAT(tx_issued);
EPSTAT(tx_pkt_bundled);