]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
pciehp: removes redundant NULL write to slot status register
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 2 Jun 2008 16:22:34 +0000 (09:22 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:54 +0000 (10:59 -0700)
Cleanup to remove a redundant NULL write to SLOTSTATUS.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_hpc.c

index eeb517b1b63d4a0707816a65992674737acde2cb..0cfaedf2edca00bbaf2f09e99f0323da87cbb6bd 100644 (file)
@@ -777,7 +777,7 @@ static irqreturn_t pcie_isr(int irq, void *dev_id)
                intr_loc |= detected;
                if (!intr_loc)
                        return IRQ_NONE;
-               if (pciehp_writew(ctrl, SLOTSTATUS, detected)) {
+               if (detected && pciehp_writew(ctrl, SLOTSTATUS, detected)) {
                        err("%s: Cannot write to SLOTSTATUS\n", __func__);
                        return IRQ_NONE;
                }