aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r--drivers/video/fbmem.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 71b55070bdb9..70be7009f8af 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -90,15 +90,7 @@ EXPORT_SYMBOL(fb_get_color_depth);
90 */ 90 */
91void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height) 91void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height)
92{ 92{
93 int i, j; 93 __fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, height);
94
95 for (i = height; i--; ) {
96 /* s_pitch is a few bytes at the most, memcpy is suboptimal */
97 for (j = 0; j < s_pitch; j++)
98 dst[j] = src[j];
99 src += s_pitch;
100 dst += d_pitch;
101 }
102} 94}
103EXPORT_SYMBOL(fb_pad_aligned_buffer); 95EXPORT_SYMBOL(fb_pad_aligned_buffer);
104 96