remove explicit memset to memory allocated with k[zc]alloc
PATCH 2/3 remove explicit memset to memory allocated with k[zc]alloc
Remove an explicit memset(.., 0, ...) to a varialable allocated with kcalloc.
Signed-off-by Christophe Jaillet <[email protected]>
---
--- 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;