treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / drivers / video / fbdev / uvesafb.c
index c592ca5..440a663 100644 (file)
@@ -486,8 +486,9 @@ static int uvesafb_vbe_getmodes(struct uvesafb_ktask *task,
                mode++;
        }
 
-       par->vbe_modes = kzalloc(sizeof(struct vbe_mode_ib) *
-                               par->vbe_modes_cnt, GFP_KERNEL);
+       par->vbe_modes = kcalloc(par->vbe_modes_cnt,
+                                sizeof(struct vbe_mode_ib),
+                                GFP_KERNEL);
        if (!par->vbe_modes)
                return -ENOMEM;
 
@@ -858,7 +859,7 @@ static int uvesafb_vbe_init_mode(struct fb_info *info)
         * Convert the modelist into a modedb so that we can use it with
         * fb_find_mode().
         */
-       mode = kzalloc(i * sizeof(*mode), GFP_KERNEL);
+       mode = kcalloc(i, sizeof(*mode), GFP_KERNEL);
        if (mode) {
                i = 0;
                list_for_each(pos, &info->modelist) {