Input: rpckbd - fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Tue, 1 Aug 2023 23:44:52 +0000 (16:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Aug 2023 23:47:39 +0000 (16:47 -0700)
commit54116d442e001e1b6bd482122043b1870998a1f3
tree8c3e9cac6965fc96e26591aece30db8d1a7f8e6a
parent57b0c96f1e34f550ec7c6699e81a6cfce7857159
Input: rpckbd - 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/r/20230731122246.2028651-1-ruanjinjie@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/rpckbd.c