lkml.org 
[lkml]   [2003]   [Jun]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 20 Jun 2003 02:01:38 +0200
FromAdrian Bunk <>
Subject[2.5 patch] yam.c: return IRQ_NONE in error case
Please check whether the following patch to return IRQ_NONE in case of
errors is correct:

--- linux-2.5.72-mm2/drivers/net/hamradio/yam.c.old	2003-06-20 01:57:02.000000000 +0200
+++ linux-2.5.72-mm2/drivers/net/hamradio/yam.c	2003-06-20 01:57:41.000000000 +0200
@@ -742,7 +742,7 @@
 
 			if (--counter <= 0) {
 				printk(KERN_ERR "%s: too many irq iir=%d\n", dev->name, iir);
-				return;
+				return IRQ_NONE;
 			}
 			if (msr & TX_RDY) {
 				++yp->nb_mdint;

TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:36    [W:2.160 / U:0.130 seconds]
©2003-2008 Jasper Spaans