Hi Joe, Kalle Valo <kvalo@xxxxxxxxxxxxxxxx> writes: > Fixes checkpatch warning: > > WARNING: Single statement macros should not use a do {} while (0) loop I would need help with this checkpatch warning: > --- a/drivers/net/wireless/ath/ath6kl/debug.c > +++ b/drivers/net/wireless/ath/ath6kl/debug.c > @@ -798,12 +798,10 @@ static ssize_t ath6kl_endpoint_stats_read(struct file *file, > return -ENOMEM; > > #define EPSTAT(name) \ > - do { \ > - len = print_endpoint_stat(target, buf, buf_len, len, \ > - offsetof(struct htc_endpoint_stats, \ > - name), \ > - #name); \ > - } while (0) > + (len = print_endpoint_stat(target, buf, buf_len, len, \ > + offsetof(struct htc_endpoint_stats, \ > + name), \ > + #name)) I wasn't quite able to figure out what is the preferred style here. I don't see how the () style is any better, but checkpatch didn't complain at least. -- Kalle Valo _______________________________________________ ath6kl mailing list ath6kl@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/ath6kl