]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Fix IRQ checks
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 3 Apr 2021 20:43:55 +0000 (23:43 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 04:16:42 +0000 (00:16 -0400)
commit79b102c1c7bb089a7c3ababe7cfe0e56b8098d8e
treeed4e06778961a59f3dd9c1db3858d5c0bbf155da
parent0985a829926dbf61c4cf0bc59cf6ed503a9b9db8
scsi: hisi_sas: Fix IRQ checks

Commit eea5d8491472 ("hisi_sas: use platform_get_irq()") failed to take
into account that irq_of_parse_and_map() and platform_get_irq() have a
different way of indicating an error: the former returns 0 and the latter
returns a negative error code. Fix up the IRQ checks!

Link: https://lore.kernel.org/r/810f26d3-908b-1d6b-dc5c-40019726baca@omprussia.ru
Fixes: eea5d8491472 ("hisi_sas: use platform_get_irq()")
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c