Skip to content

Commit

Permalink
[MTD] remove redundant/dead code from physmap_of.c
Browse files Browse the repository at this point in the history
	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>
  • Loading branch information
Mariusz Kozlowski authored and David Woodhouse committed Aug 1, 2007
1 parent c0b8ba7 commit 8f0f23f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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[] = {
Expand Down

0 comments on commit 8f0f23f

Please sign in to comment.