Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/video/fbdev/sis: Add missing else

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>

authored by

Rasmus Villemoes and committed by
Tomi Valkeinen
621f58cc 0d0b4b4d

+1 -1
+1 -1
drivers/video/fbdev/sis/init.c
··· 1511 1511 } else if(SiS_Pr->ChipType >= SIS_340) { 1512 1512 /* TODO */ 1513 1513 data = 0; 1514 - } if(SiS_Pr->ChipType >= SIS_661) { 1514 + } else if(SiS_Pr->ChipType >= SIS_661) { 1515 1515 if(SiS_Pr->SiS_ROMNew) { 1516 1516 data = ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x78) & 0xc0) >> 6); 1517 1517 } else {