projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b8ba7
)
[MTD] remove redundant/dead code from physmap_of.c
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Fri, 27 Jul 2007 15:29:32 +0000
(17:29 +0200)
committer
David Woodhouse
<dwmw2@infradead.org>
Wed, 1 Aug 2007 09:59:43 +0000
(10:59 +0100)
This patch removes redundant memset() and dead return line from
of_physmap_probe(). No functional change.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/physmap_of.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/physmap_of.c
b/drivers/mtd/maps/physmap_of.c
index bbb42c35b69b9df05a108f21b0d837f80ca3d7e6..fbd613968717e7c1d10f0c656f486b0c47031d8b 100644
(file)
--- a/
drivers/mtd/maps/physmap_of.c
+++ b/
drivers/mtd/maps/physmap_of.c
@@
-141,7
+141,6
@@
static int __devinit of_physmap_probe(struct of_device *dev, const struct of_dev
err = -ENOMEM;
goto err_out;
}
- memset(info, 0, sizeof(*info));
dev_set_drvdata(&dev->dev, info);
@@
-213,10
+212,6
@@
static int __devinit of_physmap_probe(struct of_device *dev, const struct of_dev
err_out:
of_physmap_remove(dev);
return err;
-
- return 0;
-
-
}
static struct of_device_id of_physmap_match[] = {