From: Peter Huewe Date: Mon, 13 May 2013 21:41:47 +0000 (+0200) Subject: staging/xgifb: Consolidate function almost identical calls in XGINew_GetXG21Sense X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~702 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9195ba095d452ed1689570b938e9b5780b2b38a3;p=pandora-kernel.git staging/xgifb: Consolidate function almost identical calls in XGINew_GetXG21Sense Instead of calling xgifb_reg_and_or with almost identical parameters in a simple if/else scenario, we assign the changing parameter to a temp variable and call xgifb_reg_and_or only from one location. -> Easier to read, easier to understand (especially wrt the line breaks) (For the if condition we don't need the Temp variable, so we can use the value directly). Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed