]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ath6kl: fix checkpatch error with EPSTAT() macro
authorKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Mar 2012 18:03:57 +0000 (20:03 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Mar 2012 18:03:57 +0000 (20:03 +0200)
ath6kl/debug.c:739: ERROR: Macros with complex values should be
enclosed in parenthesis

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/debug.c

index 56e1cb1702991446d4cc077edf2fb38224568225..4bebf8eb23d3a94e4bf0bedcef50da337cac78bc 100755 (executable)
@@ -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);