[PATCH 1/3] remove explicit memset to memory allocated withk[zc]alloc

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

 



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

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

---

--- linux-2.6.24-rc5/drivers/ata/pata_at32.c 2007-12-16 11:15:36.000000000
+0100
+++ linux-2.6.24-rc5/drivers/ata/pata_at32.c.cj 2007-12-17
21:59:24.000000000 +0100
@@ -329,8 +329,6 @@ static int __init pata_at32_probe(struct
  if (!info)
   return -ENOMEM;

- memset(info, 0, sizeof(struct at32_ide_info));
-
  info->irq = irq;
  info->cs  = board->cs;



-
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