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

Staging: silicom: checkpatch: cleanup macros

Fix msec_delay_bp macro formatting

Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daniel Cotey and committed by
Greg Kroah-Hartman
e3845b34 b67cd424

+11 -10
+11 -10
drivers/staging/silicom/bp_mod.h
··· 19 19 20 20 #define usec_delay(x) udelay(x) 21 21 #ifndef msec_delay_bp 22 - #define msec_delay_bp(x) do { \ 23 - int i; \ 24 - if(1) { \ 25 - for(i = 0; i < 1000; i++) \ 26 - { \ 27 - udelay(x) ; \ 28 - } \ 29 - } else { \ 30 - msleep(x); \ 31 - } } while(0) 22 + #define msec_delay_bp(x) \ 23 + do { \ 24 + int i; \ 25 + if (1) { \ 26 + for (i = 0; i < 1000; i++) { \ 27 + udelay(x) ; \ 28 + } \ 29 + } else { \ 30 + msleep(x); \ 31 + } \ 32 + } while (0) 32 33 33 34 #endif 34 35