summaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2012-09-10 21:15:17 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 22:48:16 (GMT)
commit4d8f5ca7d2bb29e3721ca7396ae0207324dfccdb (patch)
treee18759a349f4eac05625ce99f1a24714b57fb51c /drivers/staging/xgifb
parentc62c517e51cc5e36e47cb7e6410a6c5edacb4e02 (diff)
downloadlinux-fsl-qoriq-4d8f5ca7d2bb29e3721ca7396ae0207324dfccdb.tar.xz
staging: xgifb: delete redundant chip type check
All chip type values are covered by (chip >= XG20 || chip >= XG40). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/vb_setmode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index 3cba143..e300645 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -2619,9 +2619,7 @@ static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
temp = xgifb_reg_get(pVBInfo->P3d4, 0x38);
- if (((HwDeviceExtension->jChipType >= XG20) ||
- (HwDeviceExtension->jChipType >= XG40)) &&
- (pVBInfo->IF_DEF_LVDS == 0)) {
+ if (pVBInfo->IF_DEF_LVDS == 0) {
if (pVBInfo->VBType &
(VB_SIS302B |
VB_SIS301LV |