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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Christophe Jaillet <christophe.jaillet@xxxxxxxxxx>

---

--- 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;


-
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux