提交 8f0f23f9 编写于 作者: M Mariusz Kozlowski 提交者: David Woodhouse

[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: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 c0b8ba7b
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册