tc35815: Fix build error if NAPI enabled
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 2 Apr 2009 08:17:36 +0000 (01:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 08:17:36 +0000 (01:17 -0700)
This driver contains experimental NAPI code disabled by default.
The commit bea3348ee ("[NET]: Make NAPI polling independent of struct
net_device objects.") converted the NAPI path of this driver but that
conversion was not complete.  This patch fixes a build error
introduced by the commit.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tc35815.c

index b52a1c088f37717ff19e82df83ee0bd4743bd352..d91e95b237b7822f1442c97d3533b576bcf88dbd 100644 (file)
@@ -1908,7 +1908,7 @@ static int tc35815_poll(struct napi_struct *napi, int budget)
        do {
                tc_writel(status, &tr->Int_Src);        /* write to clear */
 
-               handled = tc35815_do_interrupt(dev, status, limit);
+               handled = tc35815_do_interrupt(dev, status, budget - received);
                if (handled >= 0) {
                        received += handled;
                        if (received >= budget)