diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-02-15 19:37:12 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-15 23:12:40 (GMT) |
commit | 053004b375ca8f684f778d354eeeaf4e8b17c1f0 (patch) | |
tree | e3e537daf267a16501dcd00406ac25d9eb24113d /drivers/staging | |
parent | 516354e0b458c3c16555364e105bdee5cd1cf5f1 (diff) | |
download | linux-fsl-qoriq-053004b375ca8f684f778d354eeeaf4e8b17c1f0.tar.xz |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index a602d43..edbe70b 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -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, |