]> Git Repo - linux.git/commit
scsi: hisi_sas: Fix IRQ checks
authorSergey Shtylyov <[email protected]>
Sat, 3 Apr 2021 20:43:55 +0000 (23:43 +0300)
committerMartin K. Petersen <[email protected]>
Tue, 13 Apr 2021 04:16:42 +0000 (00:16 -0400)
commit6c11dc060427e07ca144eacaccd696106b361b06
treeed4e06778961a59f3dd9c1db3858d5c0bbf155da
parent339c9b63cc7ce779ce45c675bf709cb58b807fc3
scsi: hisi_sas: Fix IRQ checks

Commit df2d8213d9e3 ("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/[email protected]
Fixes: df2d8213d9e3 ("hisi_sas: use platform_get_irq()")
Acked-by: John Garry <[email protected]>
Signed-off-by: Sergey Shtylyov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
This page took 0.053504 seconds and 4 git commands to generate.