scsi: pm8001: Simplify pm8001_chip_interrupt_enable/disable()
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 11 Sep 2023 23:27:41 +0000 (08:27 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 22 Sep 2023 01:39:46 +0000 (21:39 -0400)
commitd6f2f6c6e341998fcaf4e04c0308c24d86bece51
treed995bacfaa135fce32cd5f8506801fda53abd939
parent07ca8c1ad0618e1c7e399a204928b3f2f9778eca
scsi: pm8001: Simplify pm8001_chip_interrupt_enable/disable()

pm8001_chip_msix_interrupt_enable() and
pm8001_chip_msix_interrupt_disable() are always cold with the vector
argument equal to 0. This allows simplifying the code for these
functions. With this change, the functions are simple enough and can be
removed by open coding them directly in pm8001_chip_interrupt_enable() and
pm8001_chip_interrupt_disable(). Also do the same for the functions
pm8001_chip_intx_interrupt_enable() and
pm8001_chip_intx_interrupt_disable() and remove these functions.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230911232745.325149-7-dlemoal@kernel.org
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_hwi.c