diff options
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 10 |
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 | */ |
91 | void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height) | 91 | void 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 | } |
103 | EXPORT_SYMBOL(fb_pad_aligned_buffer); | 95 | EXPORT_SYMBOL(fb_pad_aligned_buffer); |
104 | 96 | ||