summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2008-06-02 09:22:34 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-10 10:59:54 -0700
commit6a3f084971bad985722afe25b16a5c0a990cea75 (patch)
treef65c08731c9bd2e89ce3a5e1be503b50a4bb6eb1 /drivers
parentd8b23e8ffb567758fc6074e97210ddb42114827c (diff)
downloadlinux-stable-6a3f084971bad985722afe25b16a5c0a990cea75.tar.gz
linux-stable-6a3f084971bad985722afe25b16a5c0a990cea75.tar.bz2
linux-stable-6a3f084971bad985722afe25b16a5c0a990cea75.zip
pciehp: removes redundant NULL write to slot status register
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index eeb517b1b63d..0cfaedf2edca 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;
}