All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] sisfb: fix 1280x720 resolution support
@ 2013-01-11  6:52 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-01-11  6:52 UTC (permalink / raw)
  To: linux-fbdev

It uses the wrong mode index because there is no break statement.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
Static checker fix.  Untested.

diff --git a/drivers/video/sis/init.c b/drivers/video/sis/init.c
index f082ae5..0b71c53 100644
--- a/drivers/video/sis/init.c
+++ b/drivers/video/sis/init.c
@@ -651,6 +651,7 @@ SiS_GetModeID_LCD(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDispla
 	     switch(VDisplay) {
 	     case 720:
 		ModeIndex = ModeIndex_1280x720[Depth];
+		break;
 	     case 768:
 		if(VGAEngine = SIS_300_VGA) {
 		   ModeIndex = ModeIndex_300_1280x768[Depth];

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-11  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11  6:52 [patch] sisfb: fix 1280x720 resolution support Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.