]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: crystalhd: enclose multi statements macro
authorSeongJae Park <sj38.park@gmail.com>
Sat, 18 Jan 2014 07:28:23 +0000 (16:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 18:06:03 +0000 (10:06 -0800)
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>
drivers/staging/crystalhd/crystalhd_hw.c

index 8d0680d9368474cb6683e69817f089f8a7323480..ccfa3b877a2e6cda5a698353ed9383d0ce2b0d5d 100644 (file)
@@ -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)
 {