diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2008-06-02 12:22:34 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-06-10 13:59:54 -0400 |
commit | 6a3f084971bad985722afe25b16a5c0a990cea75 (patch) | |
tree | f65c08731c9bd2e89ce3a5e1be503b50a4bb6eb1 /drivers/pci/hotplug/pciehp_hpc.c | |
parent | d8b23e8ffb567758fc6074e97210ddb42114827c (diff) |
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/pci/hotplug/pciehp_hpc.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_hpc.c | 2 |
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) | |||
777 | intr_loc |= detected; | 777 | intr_loc |= detected; |
778 | if (!intr_loc) | 778 | if (!intr_loc) |
779 | return IRQ_NONE; | 779 | return IRQ_NONE; |
780 | if (pciehp_writew(ctrl, SLOTSTATUS, detected)) { | 780 | if (detected && pciehp_writew(ctrl, SLOTSTATUS, detected)) { |
781 | err("%s: Cannot write to SLOTSTATUS\n", __func__); | 781 | err("%s: Cannot write to SLOTSTATUS\n", __func__); |
782 | return IRQ_NONE; | 782 | return IRQ_NONE; |
783 | } | 783 | } |