public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make boguscnt signed and less bogus.
@ 2009-01-18 20:29 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-01-18 20:29 UTC (permalink / raw)
  To: linux-sh

below in this function is:

if (--boguscnt < 0) {
	printk(KERN_WARNING
		"%s: Too much work at interrupt, status=0x%4.4x.\n",
		ndev->name, intr_status);
}


I am not sure it's sane like this, but at least it appears less insane.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 7f8e514..3b9c20a 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -687,7 +687,8 @@ static irqreturn_t sh_eth_interrupt(int irq, void *netdev)
 {
 	struct net_device *ndev = netdev;
 	struct sh_eth_private *mdp = netdev_priv(ndev);
-	u32 ioaddr, boguscnt = RX_RING_SIZE;
+	u32 ioaddr;
+	int boguscnt = RX_RING_SIZE;
 	u32 intr_status = 0;
 
 	ioaddr = ndev->base_addr;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-18 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-18 20:29 [PATCH] make boguscnt signed and less bogus Roel Kluin

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