can: flexcan: fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Mon, 31 Jul 2023 07:52:52 +0000 (15:52 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 31 Jul 2023 08:12:56 +0000 (10:12 +0200)
commit53b8d2be4d71953cce547696c39a2a3cb0f1ee48
treedfe15fa88da1678c50e94f3833a63737dff2b988
parent2b3082c6ef3b0104d822f6f18d2afbe5fc9a5c2c
can: flexcan: fix the return value handle for platform_get_irq()

There is no possible for platform_get_irq() to return 0
and the return value of platform_get_irq() is more sensible
to show the error reason.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/all/20230731075252.359965-1-ruanjinjie@huawei.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan/flexcan-core.c