Skip to contentSkip to conversation

ARM/S3C2440: Add spaces around case range operands.

PATCH New Robert P. J. Day 1 participant 1 message Oct 31, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM/S3C2440: Add spaces around case range operands.

For safety, add spaces around the case range operator "..." since it might be parsed incorrectly when used with integer values.

---

arch/arm/mach-s3c2440/mach-mini2440.c +1 -1
index ec71a69..f6ee17c 100644
@@ -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

========================================================================