summaryrefslogtreecommitdiffstats
path: root/drivers/net/sh_eth.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-06-22 07:38:00 +0000
committerDavid S. Miller <davem@davemloft.net>2009-06-25 20:03:56 -0700
commit37c8ae3acf39108b3b7866897f1e3e9f277efc50 (patch)
tree6b7237a46e3bca07155e0901a9a5945c3eca9b55 /drivers/net/sh_eth.c
parente2a61fa31382b1ac2b22f76f9c439892e5dc4b86 (diff)
downloadblackbird-op-linux-37c8ae3acf39108b3b7866897f1e3e9f277efc50.tar.gz
blackbird-op-linux-37c8ae3acf39108b3b7866897f1e3e9f277efc50.zip
sh_eth: remove redundant test on unsigned
Unsigned boguscnt cannot be less than 0. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r--drivers/net/sh_eth.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 341882f959f3..a2d82ddb3b4d 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -865,8 +865,7 @@ static irqreturn_t sh_eth_interrupt(int irq, void *netdev)
struct sh_eth_private *mdp = netdev_priv(ndev);
struct sh_eth_cpu_data *cd = mdp->cd;
irqreturn_t ret = IRQ_NONE;
- u32 ioaddr, boguscnt = RX_RING_SIZE;
- u32 intr_status = 0;
+ u32 ioaddr, intr_status = 0;
ioaddr = ndev->base_addr;
spin_lock(&mdp->lock);
@@ -901,12 +900,6 @@ static irqreturn_t sh_eth_interrupt(int irq, void *netdev)
if (intr_status & cd->eesr_err_check)
sh_eth_error(ndev, intr_status);
- if (--boguscnt < 0) {
- printk(KERN_WARNING
- "%s: Too much work at interrupt, status=0x%4.4x.\n",
- ndev->name, intr_status);
- }
-
other_irq:
spin_unlock(&mdp->lock);
OpenPOWER on IntegriCloud