Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

SeongJae Park and committed by
Greg Kroah-Hartman
6037b106 c34ca5a9

+3 -1
+3 -1
drivers/staging/crystalhd/crystalhd_hw.c
··· 433 433 } 434 434 435 435 #define crystalhd_hw_delete_ioq(adp, q) \ 436 + do { \ 436 437 if (q) { \ 437 438 crystalhd_delete_dioq(adp, q); \ 438 439 q = NULL; \ 439 - } 440 + } \ 441 + } while (0) 440 442 441 443 static void crystalhd_hw_delete_ioqs(struct crystalhd_hw *hw) 442 444 {