Commit ba844cb9 authored by Marc Kleine-Budde's avatar 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: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 3fb5a7ce
...@@ -141,8 +141,6 @@ static int m_can_plat_remove(struct platform_device *pdev) ...@@ -141,8 +141,6 @@ static int m_can_plat_remove(struct platform_device *pdev)
m_can_class_free_dev(mcan_class->net); m_can_class_free_dev(mcan_class->net);
platform_set_drvdata(pdev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment