The patch titled fbdev: bf54x-lq043fb: use kzalloc over kmalloc/memset has been added to the -mm tree. Its filename is fbdev-bf54x-lq043fb-use-kzalloc-over-kmalloc-memset.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: fbdev: bf54x-lq043fb: use kzalloc over kmalloc/memset From: Mike Frysinger <vapier@xxxxxxxxxx> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx> Cc: Krzysztof Helt <krzysztof.h1@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/bf54x-lq043fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff -puN drivers/video/bf54x-lq043fb.c~fbdev-bf54x-lq043fb-use-kzalloc-over-kmalloc-memset drivers/video/bf54x-lq043fb.c --- a/drivers/video/bf54x-lq043fb.c~fbdev-bf54x-lq043fb-use-kzalloc-over-kmalloc-memset +++ a/drivers/video/bf54x-lq043fb.c @@ -630,7 +630,7 @@ static int __devinit bfin_bf54x_probe(st fbinfo->fbops = &bfin_bf54x_fb_ops; - fbinfo->pseudo_palette = kmalloc(sizeof(u32) * 16, GFP_KERNEL); + fbinfo->pseudo_palette = kzalloc(sizeof(u32) * 16, GFP_KERNEL); if (!fbinfo->pseudo_palette) { printk(KERN_ERR DRIVER_NAME "Fail to allocate pseudo_palette\n"); @@ -639,8 +639,6 @@ static int __devinit bfin_bf54x_probe(st goto out4; } - memset(fbinfo->pseudo_palette, 0, sizeof(u32) * 16); - if (fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0) < 0) { printk(KERN_ERR DRIVER_NAME _ Patches currently in -mm which might be from vapier@xxxxxxxxxx are origin.patch linux-next.patch pcmcia-yenta-add-missing-__devexit-marking.patch drivers-hvc-add-missing-__devexit_p.patch kmap_types-make-most-arches-use-generic-header-file.patch ramfs-ignore-unknown-mount-options.patch drivers-char-rtc-disable-legacy-rtc-driver-on-blackfin-systems.patch gpio-max7301-add-missing-__devexit-marking.patch fbdev-blackfin-has-__raw-i-o-accessors-so-use-them-in-fbh.patch fbdev-bfin-t350mcqb-fb-drop-unused-local-variables.patch fbdev-bfin-drop-unnecessary-calls-to-memset.patch fbdev-bfin-fix-__devinitexit-markings.patch fbdev-bf54x-lq043fb-use-kzalloc-over-kmalloc-memset.patch istallion-add-missing-__devexit-marking.patch edac-add-missing-__devexit_p.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html