[PATCH] ARM/S3C2440: Add spaces around case range operands.
Robert P. J. Day
rpjday at crashcourse.ca
Sat Oct 31 04:00:51 EDT 2009
For safety, add spaces around the case range operator "..." since it
might be parsed incorrectly when used with integer values.
Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>
---
diff --git a/arch/arm/mach-s3c2440/mach-mini2440.c b/arch/arm/mach-s3c2440/mach-mini2440.c
index ec71a69..f6ee17c 100644
--- a/arch/arm/mach-s3c2440/mach-mini2440.c
+++ b/arch/arm/mach-s3c2440/mach-mini2440.c
@@ -582,7 +582,7 @@ static void mini2440_parse_features(
char f = *fp++;
switch (f) {
- case '0'...'9': /* tft screen */
+ case '0' ... '9': /* tft screen */
if (features->done & FEATURE_SCREEN) {
printk(KERN_INFO "MINI2440: '%c' ignored, "
"screen type already set\n", f);
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
More information about the linux-arm-kernel
mailing list