mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +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
@ -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 New Issue
Block a user