mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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>
This commit is contained in:
parent
a4583c1deb
commit
cbe8cd7d83
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue