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>
This commit is contained in:
Peter Huewe 2013-02-15 20:37:12 +01:00 committed by Greg Kroah-Hartman
parent 516354e0b4
commit 053004b375
1 changed files with 1 additions and 3 deletions

View File

@ -2860,10 +2860,8 @@ static unsigned short XGI_GetOffset(unsigned short ModeNo,
temp = 0x6B;
if (infoflag & InterlaceMode)
temp = temp << 1;
return temp * colordepth;
} else {
return temp * colordepth;
}
return temp * colordepth;
}
static void XGI_SetCRT2Offset(unsigned short ModeNo,