[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-c36ba80ea01d0aecb652c26799a912e760ce8981@git.kernel.org>
Date: Sun, 9 Aug 2009 10:45:42 GMT
From: tip-bot for Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, julia@...u.dk, hpa@...or.com,
mingo@...hat.com, bzolnier@...il.com, eteo@...hat.com,
corbet@....net, error27@...il.com, tglx@...utronix.de,
mingo@...e.hu
Subject: [tip:irq/core] irq: Remove superfluous NULL pointer check in check_irq_resend()
Commit-ID: c36ba80ea01d0aecb652c26799a912e760ce8981
Gitweb: http://git.kernel.org/tip/c36ba80ea01d0aecb652c26799a912e760ce8981
Author: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
AuthorDate: Thu, 6 Aug 2009 21:46:03 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 9 Aug 2009 12:44:29 +0200
irq: Remove superfluous NULL pointer check in check_irq_resend()
This takes care of the following entry from Dan's list:
kernel/irq/resend.c +73 check_irq_resend(17) warning: variable derefenced before check 'desc->chip'
Reported-by: Dan Carpenter <error27@...il.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
Cc: Jonathan Corbet <corbet@....net>
Cc: Eugene Teo <eteo@...hat.com>
Cc: Julia Lawall <julia@...u.dk>
LKML-Reference: <200908062146.03638.bzolnier@...il.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/irq/resend.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c
index 89c7117..090c376 100644
--- a/kernel/irq/resend.c
+++ b/kernel/irq/resend.c
@@ -70,8 +70,7 @@ void check_irq_resend(struct irq_desc *desc, unsigned int irq)
if ((status & (IRQ_LEVEL | IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY;
- if (!desc->chip || !desc->chip->retrigger ||
- !desc->chip->retrigger(irq)) {
+ if (!desc->chip->retrigger || !desc->chip->retrigger(irq)) {
#ifdef CONFIG_HARDIRQS_SW_RESEND
/* Set it pending and activate the softirq: */
set_bit(irq, irqs_resend);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists