* [PATCH] mtd: remove unnecessary memset from physmap_of driver
[not found] <18178.55231.813138.369480@cargo.ozlabs.ibm.com>
@ 2007-10-03 14:05 ` Valentine Barshak
0 siblings, 0 replies; only message in thread
From: Valentine Barshak @ 2007-10-03 14:05 UTC (permalink / raw)
To: linuxppc-dev; +Cc: linux-mtd
No need for memset to zero memory here, since we use kzalloc.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
drivers/mtd/maps/physmap_of.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index cf75a56..aeed9ea 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -232,7 +232,6 @@ static int __devinit of_flash_probe(struct of_device *dev,
info = kzalloc(sizeof(*info), GFP_KERNEL);
if (!info)
goto err_out;
- memset(info, 0, sizeof(*info));
dev_set_drvdata(&dev->dev, info);
--
1.5.2.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-03 15:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <18178.55231.813138.369480@cargo.ozlabs.ibm.com>
2007-10-03 14:05 ` [PATCH] mtd: remove unnecessary memset from physmap_of driver Valentine Barshak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox