Skip to content

Commit

Permalink
VIDEO: add spaces on either side of the case "..." operator
Browse files Browse the repository at this point in the history
Following the programming advice laid down in the gcc manual, make
sure the case "..." operator has spaces on either side.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed May 8, 2007
1 parent 36cc535 commit 88b229c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/video/modedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ static int my_atoi(const char *name)

for (;; name++) {
switch (*name) {
case '0'...'9':
case '0' ... '9':
val = 10*val+(*name-'0');
break;
default:
Expand Down Expand Up @@ -548,7 +548,7 @@ int fb_find_mode(struct fb_var_screeninfo *var,
} else
goto done;
break;
case '0'...'9':
case '0' ... '9':
break;
case 'M':
if (!yres_specified)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ static int __init pxafb_parse_options(struct device *dev, char *options)
} else
goto done;
break;
case '0'...'9':
case '0' ... '9':
break;
default:
goto done;
Expand Down

0 comments on commit 88b229c

Please sign in to comment.