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>
This commit is contained in:
parent
b67cd42460
commit
e3845b34e8
@ -19,16 +19,17 @@
|
|||||||
|
|
||||||
#define usec_delay(x) udelay(x)
|
#define usec_delay(x) udelay(x)
|
||||||
#ifndef msec_delay_bp
|
#ifndef msec_delay_bp
|
||||||
#define msec_delay_bp(x) do { \
|
#define msec_delay_bp(x) \
|
||||||
int i; \
|
do { \
|
||||||
if(1) { \
|
int i; \
|
||||||
for(i = 0; i < 1000; i++) \
|
if (1) { \
|
||||||
{ \
|
for (i = 0; i < 1000; i++) { \
|
||||||
udelay(x) ; \
|
udelay(x) ; \
|
||||||
} \
|
} \
|
||||||
} else { \
|
} else { \
|
||||||
msleep(x); \
|
msleep(x); \
|
||||||
} } while(0)
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user