Skip to content

Commit

Permalink
Staging: silicom: checkpatch: cleanup macros
Browse files Browse the repository at this point in the history
Fix msec_delay_bp macro formatting

Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Daniel Cotey authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent b67cd42 commit e3845b3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions drivers/staging/silicom/bp_mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@

#define usec_delay(x) udelay(x)
#ifndef msec_delay_bp
#define msec_delay_bp(x) do { \
int i; \
if(1) { \
for(i = 0; i < 1000; i++) \
{ \
udelay(x) ; \
} \
} else { \
msleep(x); \
} } while(0)
#define msec_delay_bp(x) \
do { \
int i; \
if (1) { \
for (i = 0; i < 1000; i++) { \
udelay(x) ; \
} \
} else { \
msleep(x); \
} \
} while (0)

#endif

Expand Down

0 comments on commit e3845b3

Please sign in to comment.