diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-13 21:41:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 23:02:34 (GMT) |
commit | 9195ba095d452ed1689570b938e9b5780b2b38a3 (patch) | |
tree | 60093dbe188d27fcdc841303b9435af1301317a3 /block | |
parent | bcd1f16573e1975c8a78a29bbc68e483970d9bd8 (diff) | |
download | linux-fsl-qoriq-9195ba095d452ed1689570b938e9b5780b2b38a3.tar.xz |
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 <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions