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

staging/xgifb: Consolidate return paths

Both branches of this if statement end in the same return statement.
-> move the return to the bottom and get rid of the else statement.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Huewe and committed by
Greg Kroah-Hartman
053004b3 516354e0

+1 -3
+1 -3
drivers/staging/xgifb/vb_setmode.c
··· 2860 2860 temp = 0x6B; 2861 2861 if (infoflag & InterlaceMode) 2862 2862 temp = temp << 1; 2863 - return temp * colordepth; 2864 - } else { 2865 - return temp * colordepth; 2866 2863 } 2864 + return temp * colordepth; 2867 2865 } 2868 2866 2869 2867 static void XGI_SetCRT2Offset(unsigned short ModeNo,