spi: Do not check for 0 return after calling platform_get_irq()

It is not possible for platform_get_irq() to return 0. Use the
return value from platform_get_irq().

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> #
Link: https://lore.kernel.org/r/20230802093238.975906-1-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Ruan Jinjie 2023-08-02 17:32:38 +08:00 • committed by Mark Brown
commit 8102d64c04
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
4 changed files with 8 additions and 8 deletions