Skip to contentSkip to conversation

missing break? linux/drivers/video/riva/fbdev.c

PATCH andrew may 1 participant 1 message Sep 14, 2001 Framebuffer layer

lore
Share & tools
lore

andrew may

author
#0 lore raw

I have noticed this in the 2.4.10-pre patches.

It looks like an obvious missing break on after rc =15;

drivers/video/riva/fbdev.c renamed from linux/drivers/video/riva/fbdev.c +3 -1
diff -u --recursive --new-file v2.4.9/linux/drivers/video/riva/fbdev.c linux/drivers/video/riva/fbdev.c
@@ -260,7 +260,7 @@
 #endif
 
 #ifndef MODULE
-static const char *mode_option __initdata = NULL;
+static char *mode_option __initdata = NULL;
 #else
 static char *font = NULL;
 #endif
@@ -1109,6 +1109,8 @@
 		break;
 #endif
 #ifdef FBCON_HAS_CFB16
+	case 15:
+		rc = 15;	/* fix for 15 bpp depths on Riva 128 based cards */
 	case 16:
 		rc = 16;	/* directcolor... 16 entries SW palette */
 		break;		/* Mystique: truecolor, 16 entries SW palette, HW palette hardwired into 1:1 mapping */
@@ -1119,7 +1121,6 @@