summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-12-31 16:57:46 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 16:15:59 -0800
commit38c977230c4947d1e99c558a603eb49666a42568 (patch)
tree4b90e0e7322e1ac059a2a5721103c827a76d6ac2 /drivers/staging/xgifb
parente5e76d247f4a40827fef69a72939771943774e87 (diff)
downloadtalos-op-linux-38c977230c4947d1e99c558a603eb49666a42568.tar.gz
talos-op-linux-38c977230c4947d1e99c558a603eb49666a42568.zip
staging: xgifb: remove unnecessary check
the check for htotal and vtotal is not required as we have already checked for them and returned -EINVAL if any of them is zero. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/XGI_main_26.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index 709d49e7f3c9..74a8db8223fe 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -952,7 +952,7 @@ static int XGIfb_do_set_var(struct fb_var_screeninfo *var, int isactive,
} pr_debug("var->pixclock=%d, htotal=%d, vtotal=%d\n",
var->pixclock, htotal, vtotal);
- if (var->pixclock && htotal && vtotal) {
+ if (var->pixclock) {
drate = 1000000000 / var->pixclock;
hrate = (drate * 1000) / htotal;
xgifb_info->refresh_rate = (unsigned int) (hrate * 2
OpenPOWER on IntegriCloud