]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hpsa: do not check for msi(x) in interrupt_pending
authorStephen Cameron <stephenmcameron@gmail.com>
Fri, 23 Jan 2015 22:43:56 +0000 (16:43 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:41 +0000 (09:57 -0800)
No need to check whether interrupt pending for MSI(X) and
conversely, no need to check whether MSI(X) interrupts are
being used when checking if interrupts are pending.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.h

index aa6cb0b0b427f8d94161fe2141f9d14c44edc697..239eceac8b60458e9ad2042a0b70ac940b88c684 100644 (file)
@@ -479,9 +479,6 @@ static bool SA5_performant_intr_pending(struct ctlr_info *h)
        if (!register_value)
                return false;
 
-       if (h->msi_vector || h->msix_vector)
-               return true;
-
        /* Read outbound doorbell to flush */
        register_value = readl(h->vaddr + SA5_OUTDB_STATUS);
        return register_value & SA5_OUTDB_STATUS_PERF_BIT;