can: m_can: m_can_class_allocate_dev(): remove impossible error return judgment
authorXulin Sun <xulin.sun@windriver.com>
Fri, 5 Feb 2021 07:25:59 +0000 (15:25 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 30 Mar 2021 09:14:47 +0000 (11:14 +0200)
commit8fa12201b6521a8752a2474229a81b0aa09c2b93
treefb8d42911ad8c386431ec13e1b87c25686e0ef33
parent58b29aa9d47128ec6ee8fd731b0f137a82f0b9ea
can: m_can: m_can_class_allocate_dev(): remove impossible error return judgment

If the CAN net device has been successfully allocated, its private
data structure is impossible to be empty, remove this redundant error
return judgment.

Link: https://lore.kernel.org/r/20210205072559.13241-2-xulin.sun@windriver.com
Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c