projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bcc246
)
Staging: xgifb: Remove useless condition.
author
Miguel Gómez
<magomez@igalia.com>
Fri, 6 Jul 2012 10:40:54 +0000
(12:40 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 11 Jul 2012 23:59:32 +0000
(16:59 -0700)
Remove last if branch in XGIfb_do_set_var(), as it has no action assigned.
Signed-off-by: Miguel Gómez <magomez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c
patch
|
blob
|
history
diff --git
a/drivers/staging/xgifb/XGI_main_26.c
b/drivers/staging/xgifb/XGI_main_26.c
index 0f49a2104d40b91300a12996f6e33332c26713a6..64ffd70eb7dcf2da0eb179bfac4f12b138a3e9b3 100644
(file)
--- a/
drivers/staging/xgifb/XGI_main_26.c
+++ b/
drivers/staging/xgifb/XGI_main_26.c
@@
-973,8
+973,6
@@
static int XGIfb_do_set_var(struct fb_var_screeninfo *var, int isactive,
vtotal <<= 1;
else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE)
vtotal <<= 2;
- else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) {
- }
if (!htotal || !vtotal) {
pr_debug("Invalid 'var' information\n");