fbdev: goldfishfb: Do not check 0 for platform_get_irq()
authorZhu Wang <wangzhu9@huawei.com>
Thu, 3 Aug 2023 07:10:06 +0000 (15:10 +0800)
committerHelge Deller <deller@gmx.de>
Tue, 15 Aug 2023 21:39:33 +0000 (23:39 +0200)
commit0650d5098f8b6b232cd5ea0e15437fc38f7d63ba
tree11cd88343f6858490220868bf6549756d79182f3
parent73d7f28b08319d33fb1e9939f89d7b1ab29c9672
fbdev: goldfishfb: Do not check 0 for platform_get_irq()

Since platform_get_irq() never returned zero, so it need not to check
whether it returned zero, and we use the return error code of
platform_get_irq() to replace the current return error code.

Please refer to the commit a85a6c86c25b ("driver core: platform: Clarify
that IRQ 0 is invalid") to get that platform_get_irq() never returned
zero.

Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/goldfishfb.c