Skip to contentSkip to conversation

irq_remap: silence a bogus pr_err()

PATCH In review Dan Carpenter 2 participants 3 messages Jun 12, 2012 – Jun 14, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irq_remap: silence a bogus pr_err()

There is an extra semicolon here so the pr_err() message is printed when it is not intended.

drivers/iommu/intel_irq_remapping.c +1 -1
index dafbad0..853902a 100644
@@ -938,7 +938,7 @@ intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask,
 
 	err = apic->cpu_mask_to_apicid_and(cfg->domain, mask, &dest);
 	if (err) {
-		if (assign_irq_vector(irq, cfg, data->affinity));
+		if (assign_irq_vector(irq, cfg, data->affinity))
 			pr_err("Failed to recover vector for irq %d\n", irq);
 		return err;
 	}
#1 lore raw
Quoted 10 lines · Dan Carpenter

There is an extra semicolon here so the pr_err() message is printed when it is not intended.

drivers/iommu/intel_irq_remapping.c +0 -0
index dafbad0..853902a 100644

drivers/iommu/intel_irq_remapping.c intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask, · line 944

Quoted 8 lines
drivers/iommu/intel_irq_remapping.c +1 -1
@@ -938,7 +938,7 @@ intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask,
 
        err = apic->cpu_mask_to_apicid_and(cfg->domain, mask, &dest);
        if (err) {
-               if (assign_irq_vector(irq, cfg, data->affinity));
+               if (assign_irq_vector(irq, cfg, data->affinity))
                        pr_err("Failed to recover vector for irq %d\n", irq);
                return err;
        }

introduced by:

commit ff164324123c0fe181d8de7dadcc7b3fbe25f2cf

Author: Alexander Gordeev <[email protected]>
Date:   Thu Jun 7 15:15:59 2012 +0200

x86/apic: Make cpu_mask_to_apicid() operations return error code
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

[tip:x86/apic] x86/apic/irq_remap: Silence a bogus pr_err()

In reply to Dan Carpenter
Commit-ID:  ed88bed881c9948c4035828c5d63f60c7b015f86
Gitweb:     http://git.kernel.org/tip/ed88bed881c9948c4035828c5d63f60c7b015f86
Author:     Dan Carpenter <[email protected]>
AuthorDate: Tue, 12 Jun 2012 19:26:33 +0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 13 Jun 2012 09:51:04 +0200

x86/apic/irq_remap: Silence a bogus pr_err()

There is an extra semicolon here so the pr_err() message is printed when it is not intended.

---
 drivers/iommu/intel_irq_remapping.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/iommu/intel_irq_remapping.c +1 -1
index dafbad0..853902a 100644
@@ -938,7 +938,7 @@ intel_ioapic_set_affinity(struct irq_data *data, const struct cpumask *mask,
 
 	err = apic->cpu_mask_to_apicid_and(cfg->domain, mask, &dest);
 	if (err) {
-		if (assign_irq_vector(irq, cfg, data->affinity));
+		if (assign_irq_vector(irq, cfg, data->affinity))
 			pr_err("Failed to recover vector for irq %d\n", irq);
 		return err;
 	}