提交 c650538f 编写于 作者: K Kalle Valo

ath6kl: fix checkpatch error with EPSTAT() macro

ath6kl/debug.c:739: ERROR: Macros with complex values should be
enclosed in parenthesis
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 51b56e26
...@@ -740,9 +740,13 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file, ...@@ -740,9 +740,13 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file,
return -ENOMEM; return -ENOMEM;
#define EPSTAT(name) \ #define EPSTAT(name) \
len = print_endpoint_stat(target, buf, buf_len, len, \ do { \
offsetof(struct htc_endpoint_stats, name), \ len = print_endpoint_stat(target, buf, buf_len, len, \
#name) offsetof(struct htc_endpoint_stats, \
name), \
#name); \
} while (0)
EPSTAT(cred_low_indicate); EPSTAT(cred_low_indicate);
EPSTAT(tx_issued); EPSTAT(tx_issued);
EPSTAT(tx_pkt_bundled); EPSTAT(tx_pkt_bundled);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册