Staging: ft1000-usb: wrap macros in do while
Fix coding style issue by wrapping the macro in a do {} while (0). Signed-off-by: Anders Darander <anders.darander@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c80561e96b
commit
87a7630109
|
@ -32,17 +32,20 @@
|
|||
|
||||
|
||||
#define seq_putx(m, message, size, var) \
|
||||
seq_printf(m, message); \
|
||||
for (i = 0; i < (size - 1); i++) \
|
||||
seq_printf(m, "%02x:", var[i]); \
|
||||
seq_printf(m, "%02x\n", var[i])
|
||||
do { \
|
||||
seq_printf(m, message); \
|
||||
for (i = 0; i < (size - 1); i++) \
|
||||
seq_printf(m, "%02x:", var[i]); \
|
||||
seq_printf(m, "%02x\n", var[i]); \
|
||||
} while (0)
|
||||
|
||||
#define seq_putd(m, message, size, var) \
|
||||
seq_printf(m, message); \
|
||||
for (i = 0; i < (size - 1); i++) \
|
||||
seq_printf(m, "%d.", var[i]); \
|
||||
seq_printf(m, "%d\n", var[i])
|
||||
|
||||
do { \
|
||||
seq_printf(m, message); \
|
||||
for (i = 0; i < (size - 1); i++) \
|
||||
seq_printf(m, "%d.", var[i]); \
|
||||
seq_printf(m, "%d\n", var[i]); \
|
||||
} while (0)
|
||||
|
||||
#define FTNET_PROC init_net.proc_net
|
||||
|
||||
|
|
Loading…
Reference in New Issue