Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f0f23f9 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by David Woodhouse
Browse files

[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: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c0b8ba7b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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[] = {