Skip to contentSkip to conversation

remove explicit memset to memory allocated with k[zc]alloc

PATCH In review Christophe Jaillet 1 participant 1 message Dec 18, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 remove explicit memset to memory allocated with k[zc]alloc

Remove an explicit memset(.., 0, ...) to a varialable allocated with kcalloc.

---

--- linux-2.6.24-rc5/arch/blackfin/kernel/bfin_gpio.c 2007-12-16 11:13:58.000000000 +0100
+++ linux-2.6.24-rc5/arch/blackfin/kernel/bfin_gpio.c.cj 2007-12-17 21:58:02.000000000 +0100
@@ -423,8 +423,6 @@ static int __init bfin_gpio_init(void)
if (str_ident = NULL)
return -ENOMEM;

- memset(str_ident, 0, MAX_RESOURCES * sizeof(struct str_ident)); -
printk(KERN_INFO "Blackfin GPIO Controller\n");

return 0;