drivers/video/fbdev/sis: Add missing else
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 20 Jun 2014 19:59:57 +0000 (21:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 1 Jul 2014 10:32:31 +0000 (13:32 +0300)
The surrounding code and the fact that the previous two if's are
rendered useless without this "else" (since SIS_340==55 and XGI_20==75
are greater than SIS_661==15) suggests that the "else" is indeed
missing.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/sis/init.c

index bd40f5ecd901f47f451ca7fd9895a56de7c614eb..dfe3eb769638bd29dd76231f0cbc6f41f9b61566 100644 (file)
@@ -1511,7 +1511,7 @@ SiS_Get310DRAMType(struct SiS_Private *SiS_Pr)
       } else if(SiS_Pr->ChipType >= SIS_340) {
         /* TODO */
         data = 0;
-      } if(SiS_Pr->ChipType >= SIS_661) {
+      } else if(SiS_Pr->ChipType >= SIS_661) {
         if(SiS_Pr->SiS_ROMNew) {
            data = ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x78) & 0xc0) >> 6);
         } else {