Skip to contentSkip to conversation

ariadne: remove redundant NULL check

PATCH In review [email protected] 3 participants 4 messages Mar 10, 2011 – Mar 11, 2011

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

PATCH 1/1 ariadne: remove redundant NULL check

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

---
 ariadne.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/net/ariadne.c +0 -5
@@ -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 */
maintainer
#1 lore raw

From: [email protected]
Date: Thu, 10 Mar 2011 17:36:37 -0500

Quoted 5 lines

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

Patch is still corrupted by your email client, the same way as before. And when you fix it, you don't need to mention this in the commit message.

Please, take the time to do some testing by sending the patch to yourself, and then try to apply the patch in the email you receive.

maintainer
#2 lore raw

From: David Miller <[email protected]>
Date: Thu, 10 Mar 2011 14:39:42 -0800 (PST)

Quoted 10 lines

From: [email protected]
Date: Thu, 10 Mar 2011 17:36:37 -0500

Quoted 5 lines

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

Patch is still corrupted by your email client, the same way as before.

Sorry, I apologize, this is not your fault.

This is one of those terrible old drivers that have bad coding style.

I'll apply this patch, thank you.

#3 lore raw

* David Miller <[email protected]>:

Quoted 2 lines

This is one of those terrible old drivers that have bad coding style.

Would you like a cleanup patch for this driver?

Best regards,
Nicolas Kaiser