can: m_can_platform: remove not needed casts to struct m_can_plat_priv *
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 19 Aug 2019 17:17:13 +0000 (19:17 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 20 Aug 2019 11:41:26 +0000 (13:41 +0200)
commit28b0ffe98b53cf1f3e58023699886f813fb26144
tree46e01ab08367dc19cb7b2f5dbed015874851b3ae
parent6093f744fec77e06f98b0267ced88b9caa64eae8
can: m_can_platform: remove not needed casts to struct m_can_plat_priv *

The struct m_can_classdev::device_data is a void pointer, so there's no
need to cast it to struct m_can_plat_priv *, when assigning the struct
m_can_plat_priv pointer.

This patch removes the not needed casts from the m_can_platform driver.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can_platform.c