]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
can: m_can: m_can_plat_remove(): remove unneeded platform_set_drvdata()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Nov 2020 13:37:12 +0000 (14:37 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Nov 2020 13:55:38 +0000 (14:55 +0100)
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.de
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can_platform.c

index 161cb9be018c091362b64b4f3555a553ea25559a..c45a889a1afd4085681805cd672aec123808c7e5 100644 (file)
@@ -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;
 }