summaryrefslogtreecommitdiffstats
path: root/drivers/staging/crystalhd
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2014-01-18 16:28:23 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 10:06:03 -0800
commit6037b10655d7f0ffed42ada7364cf7508ff9a606 (patch)
tree2997e32c2258cdfc572bb7f4f7ad3507a967ffaa /drivers/staging/crystalhd
parentc34ca5a97bc3e90cab3af7e64c1c7c85302e6a09 (diff)
downloadblackbird-op-linux-6037b10655d7f0ffed42ada7364cf7508ff9a606.tar.gz
blackbird-op-linux-6037b10655d7f0ffed42ada7364cf7508ff9a606.zip
staging: crystalhd: enclose multi statements macro
Enclose multiple statements macro with do - while block. Signed-off-by: SeongJae Park <sj38.park@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/crystalhd')
-rw-r--r--drivers/staging/crystalhd/crystalhd_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/crystalhd/crystalhd_hw.c b/drivers/staging/crystalhd/crystalhd_hw.c
index 8d0680d93684..ccfa3b877a2e 100644
--- a/drivers/staging/crystalhd/crystalhd_hw.c
+++ b/drivers/staging/crystalhd/crystalhd_hw.c
@@ -433,10 +433,12 @@ static void crystalhd_rx_pkt_rel_call_back(void *context, void *data)
}
#define crystalhd_hw_delete_ioq(adp, q) \
+do { \
if (q) { \
crystalhd_delete_dioq(adp, q); \
q = NULL; \
- }
+ } \
+} while (0)
static void crystalhd_hw_delete_ioqs(struct crystalhd_hw *hw)
{
OpenPOWER on IntegriCloud