staging/xgifb: Consolidate if branches with similar conditions
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 4 Feb 2013 23:29:47 +0000 (00:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:16:22 +0000 (11:16 -0800)
commitf951dd05f9549c9b1a16d4eabfe60c20721de292
treec37fc065ecacb0755986a18163299e4a48ceccd7
parent826215d98f49bce6ca6bf69f3b54a0d58fc89c99
staging/xgifb: Consolidate if branches with similar conditions

1) The same condition (pVBInfo->IF_DEF_LVDS == 0) was checked in the if
clause directly in front of this one.

2) The same condition pVBInfo->VBType & (VB_SIS301B | VB_SIS302B |
VB_SIS301LV | VB_SIS302LV | VB_XGI301C) was checked in the if
clause directly in front of this one.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c