mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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:
parent
516354e0b4
commit
053004b375
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue