From: SeongJae Park Date: Sat, 18 Jan 2014 07:28:23 +0000 (+0900) Subject: staging: crystalhd: enclose multi statements macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6037b10655d7f0ffed42ada7364cf7508ff9a606;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: crystalhd: enclose multi statements macro Enclose multiple statements macro with do - while block. Signed-off-by: SeongJae Park Signed-off-by: Greg Kroah-Hartman --- 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) {