public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Roel Kluin <roel.kluin@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] make boguscnt signed and less bogus.
Date: Sun, 18 Jan 2009 20:29:24 +0000	[thread overview]
Message-ID: <49739124.8050105@gmail.com> (raw)

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;

                 reply	other threads:[~2009-01-18 20:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49739124.8050105@gmail.com \
    --to=roel.kluin@gmail.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox