From e360a2da41f5d1565424715f119d7290e9e6c073 Mon Sep 17 00:00:00 2001 From: Nelson Castillo Date: Tue, 21 Apr 2009 11:18:33 -0500 Subject: glamo_fb: Small cleanup ~ Cleanup of a redundant call I introduced before. ~ Removed useless assignation. Signed-off-by: Nelson Castillo --- drivers/mfd/glamo/glamo-fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/mfd/glamo/glamo-fb.c') 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; } } -- cgit v1.2.3