Commit 6037b106 authored by SeongJae Park's avatar SeongJae Park Committed by Greg Kroah-Hartman

staging: crystalhd: enclose multi statements macro

Enclose multiple statements macro with do - while block.
Signed-off-by: default avatarSeongJae Park <sj38.park@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c34ca5a9
...@@ -433,10 +433,12 @@ static void crystalhd_rx_pkt_rel_call_back(void *context, void *data) ...@@ -433,10 +433,12 @@ static void crystalhd_rx_pkt_rel_call_back(void *context, void *data)
} }
#define crystalhd_hw_delete_ioq(adp, q) \ #define crystalhd_hw_delete_ioq(adp, q) \
do { \
if (q) { \ if (q) { \
crystalhd_delete_dioq(adp, q); \ crystalhd_delete_dioq(adp, q); \
q = NULL; \ q = NULL; \
} } \
} while (0)
static void crystalhd_hw_delete_ioqs(struct crystalhd_hw *hw) static void crystalhd_hw_delete_ioqs(struct crystalhd_hw *hw)
{ {
......
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