OSDN Git Service

can: mscan: mpc5xxx_can: mpc5xxx_can_probe(): remove useless BUG_ON()
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 14:10:33 +0000 (22:10 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 25 Aug 2021 06:25:11 +0000 (08:25 +0200)
commitcbe8cd7d83e251bff134a57ea4b6378db992ad82
tree71e0bf5a01b2f998176406917fad4cb73de6f6a3
parenta4583c1deb1b6e574ec0f4095d5a44d7160353f1
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>
drivers/net/can/mscan/mpc5xxx_can.c