summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2012-06-29 16:07:46 +0100
committerJon Medhurst <tixy@linaro.org>2013-10-28 15:05:36 -0700
commit420d89de553b423e593f9196ed3276a3709b76a6 (patch)
tree23bb976a2a9a2c2a82c8ede144b0654ae09b9916 /drivers
parentb830fdecdf9d83c35cf466fae5ab1df6f049a1dd (diff)
ARM HDLCD: Review comments from Liviu - extraneous memcpy
Signed-off-by: Chris Redpath <chris.redpath@arm.com> Reviewed-By: Liviu Dudau <liviu.dudau@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/arm-hdlcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/arm-hdlcd.c b/drivers/video/arm-hdlcd.c
index 8d5409db6b17..f16bb882e0c5 100644
--- a/drivers/video/arm-hdlcd.c
+++ b/drivers/video/arm-hdlcd.c
@@ -262,10 +262,10 @@ static int hdlcd_set_par(struct fb_info *info)
if (!memcmp(&info->var, &cached_var_screeninfo,
sizeof(struct fb_var_screeninfo))) {
if(old_yoffset != info->var.yoffset) {
- /* we only changed yoffset */
+ /* we only changed yoffset, and we already
+ * already recorded it a couple lines up
+ */
hdlcd_pan_display(&info->var, info);
- memcpy(&cached_var_screeninfo, &info->var,
- sizeof(struct fb_var_screeninfo));
}
/* or no change */
return 0;