scsi: pm8001: clean up dead code when PM8001_USE_MSIX is defined
authorColin Ian King <colin.king@canonical.com>
Thu, 28 Mar 2019 23:43:28 +0000 (23:43 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:59 +0000 (23:45 -0400)
commit292c04cca8b7a260a8fbbd75bd3cc627409fa347
tree8c6aaf05f1e67d85fbd1e9f391103db0902189ec
parentf99b77e0bf4d4e53b81b6b0d16fdd34835891f7c
scsi: pm8001: clean up dead code when PM8001_USE_MSIX is defined

When macro PM8001_USE_MSIX is defined there are redundant dead code calls
to pm8001_chip_intx_interrupt_{enable|disable} and pm8001_cr32.

Clean this up for the defined PM8001_USE_MSIX and undefined
PM8001_USE_MSIX cases.

[mkp: squashed two patches]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_hwi.c
drivers/scsi/pm8001/pm80xx_hwi.c