From: Peter Huewe Date: Fri, 15 Feb 2013 19:37:12 +0000 (+0100) Subject: staging/xgifb: Consolidate return paths X-Git-Tag: upstream/snapshot3+hdmi~5696^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=053004b375ca8f684f778d354eeeaf4e8b17c1f0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- 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,