aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbcvt.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-01-09 23:53:45 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:51 -0500
commitdef1ededb7bfefc8678b4c7251622f7cbe65af94 (patch)
tree4cd264f2ec5e05011db8412c22e0ac2d8dbbf32a /drivers/video/fbcvt.c
parenta39bc34ea8f042e090ade124726ae5a3fd1a51f8 (diff)
[PATCH] fbdev: Replace kmalloc with kzalloc
Replace kmalloc with kzalloc Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/fbcvt.c')
-rw-r--r--drivers/video/fbcvt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbcvt.c b/drivers/video/fbcvt.c
index 0b6af00d197e..ac90883dc3aa 100644
--- a/drivers/video/fbcvt.c
+++ b/drivers/video/fbcvt.c
@@ -214,12 +214,11 @@ static void fb_cvt_print_name(struct fb_cvt_data *cvt)
214{ 214{
215 u32 pixcount, pixcount_mod; 215 u32 pixcount, pixcount_mod;
216 int cnt = 255, offset = 0, read = 0; 216 int cnt = 255, offset = 0, read = 0;
217 u8 *buf = kmalloc(256, GFP_KERNEL); 217 u8 *buf = kzalloc(256, GFP_KERNEL);
218 218
219 if (!buf) 219 if (!buf)
220 return; 220 return;
221 221
222 memset(buf, 0, 256);
223 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; 222 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000;
224 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; 223 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000;
225 pixcount_mod /= 1000; 224 pixcount_mod /= 1000;