projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4583c1
)
can: mscan: mpc5xxx_can: mpc5xxx_can_probe(): remove useless BUG_ON()
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 14:10:33 +0000
(22:10 +0800)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 25 Aug 2021 06:25:11 +0000
(08:25 +0200)
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>
drivers/net/can/mscan/mpc5xxx_can.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/mscan/mpc5xxx_can.c
b/drivers/net/can/mscan/mpc5xxx_can.c
index
3b7465a
..
35892c1
100644
(file)
--- 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);