Commit 87a76301 authored by Anders Darander's avatar Anders Darander Committed by Greg Kroah-Hartman

Staging: ft1000-usb: wrap macros in do while

Fix coding style issue by wrapping the macro in a do {} while (0).
Signed-off-by: default avatarAnders Darander <anders.darander@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c80561e9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment