public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irq: remove superfluous NULL pointer check in check_irq_resend()
@ 2009-08-06 19:46 Bartlomiej Zolnierkiewicz
  2009-08-08 16:21 ` [tip:irq/core] irq: Remove " tip-bot for Bartlomiej Zolnierkiewicz
  2009-08-09 10:45 ` tip-bot for Bartlomiej Zolnierkiewicz
  0 siblings, 2 replies; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-08-06 19:46 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Dan Carpenter, Jonathan Corbet, Eugene Teo, Julia Lawall,
	linux-kernel

From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] 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@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Eugene Teo <eteo@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 kernel/irq/resend.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: b/kernel/irq/resend.c
===================================================================
--- a/kernel/irq/resend.c
+++ b/kernel/irq/resend.c
@@ -70,8 +70,7 @@ void check_irq_resend(struct irq_desc *d
 	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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-09 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 19:46 [PATCH] irq: remove superfluous NULL pointer check in check_irq_resend() Bartlomiej Zolnierkiewicz
2009-08-08 16:21 ` [tip:irq/core] irq: Remove " tip-bot for Bartlomiej Zolnierkiewicz
2009-08-09 10:45 ` tip-bot for Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox