netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] ariadne: remove redundant NULL check
@ 2011-03-10 22:36 j223yang
  2011-03-10 22:39 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: j223yang @ 2011-03-10 22:36 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-kernel

Simply remove redundant 'dev' NULL check.
Source code uses spaces instead of TAB, except 'printk' and 'return' lines.


Signed-off-by: Jinqiu Yang <crindy646@gmail.com>
---
 ariadne.c |    5 -----
 1 file changed, 5 deletions(-)

--- a/drivers/net/ariadne.c	2011-03-10 11:20:14.076039323 -0500
+++ b/drivers/net/ariadne.c	2011-03-10 11:21:59.111164537 -0500
@@ -425,11 +425,6 @@ static irqreturn_t ariadne_interrupt(int
     int csr0, boguscnt;
     int handled = 0;
 
-    if (dev == NULL) {
-	printk(KERN_WARNING "ariadne_interrupt(): irq for unknown device.\n");
-	return IRQ_NONE;
-    }
-
     lance->RAP = CSR0;			/* PCnet-ISA Controller Status */
 
     if (!(lance->RDP & INTR))		/* Check if any interrupt has been */

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Patch]ariadne: remove redundant NULL check
@ 2011-03-10 17:20 j223yang
  2011-03-10 22:12 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: j223yang @ 2011-03-10 17:20 UTC (permalink / raw)
  To: davem, netdev; +Cc: linux-kernel

Simply remove redundant 'dev' NULL check. 

Signed-off-by: Jinqiu Yang<crindy646@gmail.com>
---
 ariadne.c |    5 -----
 1 file changed, 5 deletions(-)

--- a/drivers/net/ariadne.c	2011-03-10 11:20:14.076039323 -0500
+++ b/drivers/net/ariadne.c	2011-03-10 11:21:59.111164537 -0500
@@ -425,11 +425,6 @@ static irqreturn_t ariadne_interrupt(int
     int csr0, boguscnt;
     int handled = 0;
 
-    if (dev == NULL) {
-	printk(KERN_WARNING "ariadne_interrupt(): irq for unknown device.\n");
-	return IRQ_NONE;
-    }
-
     lance->RAP = CSR0;			/* PCnet-ISA Controller Status */
 
     if (!(lance->RDP & INTR))		/* Check if any interrupt has been */

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

end of thread, other threads:[~2011-03-11  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 22:36 [patch] ariadne: remove redundant NULL check j223yang
2011-03-10 22:39 ` David Miller
2011-03-10 22:40   ` David Miller
2011-03-11  9:57     ` Nicolas Kaiser
  -- strict thread matches above, loose matches on Subject: below --
2011-03-10 17:20 [Patch]ariadne: " j223yang
2011-03-10 22:12 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).