diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-27 11:29:32 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-01 05:59:43 -0400 |
commit | 8f0f23f97adbd833000e25e41c1310e49ace9ba8 (patch) | |
tree | 6da88f65a0bc3fb053b77c33f6a17971e35d3d31 /drivers/mtd | |
parent | c0b8ba7bfe7b4c1f11b3356b65520405b005bd33 (diff) |
[MTD] remove redundant/dead code from physmap_of.c
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index bbb42c35b69b..fbd613968717 100644 --- 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 | |||
141 | err = -ENOMEM; | 141 | err = -ENOMEM; |
142 | goto err_out; | 142 | goto err_out; |
143 | } | 143 | } |
144 | memset(info, 0, sizeof(*info)); | ||
145 | 144 | ||
146 | dev_set_drvdata(&dev->dev, info); | 145 | dev_set_drvdata(&dev->dev, info); |
147 | 146 | ||
@@ -213,10 +212,6 @@ static int __devinit of_physmap_probe(struct of_device *dev, const struct of_dev | |||
213 | err_out: | 212 | err_out: |
214 | of_physmap_remove(dev); | 213 | of_physmap_remove(dev); |
215 | return err; | 214 | return err; |
216 | |||
217 | return 0; | ||
218 | |||
219 | |||
220 | } | 215 | } |
221 | 216 | ||
222 | static struct of_device_id of_physmap_match[] = { | 217 | static struct of_device_id of_physmap_match[] = { |