提交 ba844cb9 编写于 作者: M Marc Kleine-Budde

can: m_can: m_can_plat_remove(): remove unneeded platform_set_drvdata()

There's no need to unset the drvdata on remove, so remove the unneeded call to
platform_set_drvdata() in m_can_plat_remove().

Link: https://lore.kernel.org/r/20201130133713.269256-6-mkl@pengutronix.deReviewed-by: NDan Murphy <dmurphy@ti.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 3fb5a7ce
......@@ -141,8 +141,6 @@ static int m_can_plat_remove(struct platform_device *pdev)
m_can_class_free_dev(mcan_class->net);
platform_set_drvdata(pdev, NULL);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册