summaryrefslogtreecommitdiff
path: root/drivers/net/can/mscan/mpc5xxx_can.c
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-08-23 17:10:33 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-08-25 09:25:11 +0300
commitcbe8cd7d83e251bff134a57ea4b6378db992ad82 (patch)
tree71e0bf5a01b2f998176406917fad4cb73de6f6a3 /drivers/net/can/mscan/mpc5xxx_can.c
parenta4583c1deb1b6e574ec0f4095d5a44d7160353f1 (diff)
downloadlinux-cbe8cd7d83e251bff134a57ea4b6378db992ad82.tar.xz
can: mscan: mpc5xxx_can: mpc5xxx_can_probe(): remove useless BUG_ON()
In the function mpc5xxx_can_probe(), the variable 'data' has already been determined in the above code, so the BUG_ON() in this place is useless, remove it. Link: https://lore.kernel.org/r/20210823141033.17876-1-tangbin@cmss.chinamobile.com Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/mscan/mpc5xxx_can.c')
-rw-r--r--drivers/net/can/mscan/mpc5xxx_can.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c
index 3b7465acd35c..35892c1efef0 100644
--- a/drivers/net/can/mscan/mpc5xxx_can.c
+++ b/drivers/net/can/mscan/mpc5xxx_can.c
@@ -317,7 +317,6 @@ static int mpc5xxx_can_probe(struct platform_device *ofdev)
clock_name = of_get_property(np, "fsl,mscan-clock-source", NULL);
- BUG_ON(!data);
priv->type = data->type;
priv->can.clock.freq = data->get_clock(ofdev, clock_name,
&mscan_clksrc);