summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Weisser <weisserm@arcor.de>2011-06-29 11:57:25 (GMT)
committerAnatolij Gustschin <agust@denx.de>2011-08-02 20:42:02 (GMT)
commit8370befc1968bdfb0b2423fe10a3cb2e66e8a197 (patch)
treec469ffc44bf7a579634b9b22258b343ff545a2ea
parentd50a8f45c9a640b3bcbd0ede91f83c8646cca018 (diff)
downloadu-boot-fsl-qoriq-8370befc1968bdfb0b2423fe10a3cb2e66e8a197.tar.xz
video: Use memset instead of loop
There is a optimized version of memset in u-boot available so use it instead of the hand written loop version. Signed-off-by: Matthias Weisser <weisserm@arcor.de>
-rw-r--r--drivers/video/mb86r0xgdc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/mb86r0xgdc.c b/drivers/video/mb86r0xgdc.c
index 3bdc1db..5425c9d 100644
--- a/drivers/video/mb86r0xgdc.c
+++ b/drivers/video/mb86r0xgdc.c
@@ -77,8 +77,7 @@ static void dsp_init(struct mb86r0x_gdc_dsp *dsp, char *modestr,
}
/* Fill memory with white */
- for (i = 0; i < var_mode.xres * var_mode.yres / 2; i++)
- *videomem++ = 0xFFFFFFFF;
+ memset(videomem, 0xFF, var_mode.xres * var_mode.yres * 2);
mb86r0x.winSizeX = var_mode.xres;
mb86r0x.winSizeY = var_mode.yres;