From: Kenji Kaneshige Date: Mon, 2 Jun 2008 16:22:34 +0000 (-0700) Subject: pciehp: removes redundant NULL write to slot status register X-Git-Tag: v2.6.27-rc1~1046^2~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a3f084971bad985722afe25b16a5c0a990cea75;p=linux-2.6-omap-h63xx.git pciehp: removes redundant NULL write to slot status register Cleanup to remove a redundant NULL write to SLOTSTATUS. Signed-off-by: Kenji Kaneshige Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index eeb517b1b63..0cfaedf2edc 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c @@ -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; }