Skip to content

Commit

Permalink
staging/xgifb: Consolidate return paths
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent 516354e commit 053004b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 053004b

Please sign in to comment.