aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-fb.c
diff options
context:
space:
mode:
authorNelson Castillo <arhuaco@freaks-unidos.net>2009-04-21 11:18:33 -0500
committerNelson Castillo <arhuaco@freaks-unidos.net>2009-04-21 11:20:01 -0500
commite360a2da41f5d1565424715f119d7290e9e6c073 (patch)
tree8ff0255a1b68253add6506df59618c80414df507 /drivers/mfd/glamo/glamo-fb.c
parent80f036923d92f1f1bc5435366e6af35905d9d927 (diff)
glamo_fb: Small cleanup
~ Cleanup of a redundant call I introduced before. ~ Removed useless assignation. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r--drivers/mfd/glamo/glamo-fb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index 43bb2359054..914eab43e55 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -461,7 +461,7 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
orientation_changing = will_orientation_change(var);
/* Adjust the pitch according to new orientation to come. */
- if (will_orientation_change(var))
+ if (orientation_changing)
pitch = var->yres * var->bits_per_pixel / 8;
else
pitch = var->xres * var->bits_per_pixel / 8;
@@ -493,9 +493,7 @@ static void glamofb_update_lcd_controller(struct glamofb_handle *glamo,
var->yres = xres;
} else {
var->xres_virtual = xres;
- var->xres = xres; /* Unneeded. */
var->yres_virtual = yres;
- var->yres = yres; /* Unneeded. */
var->yres_virtual *= 2;
}
}