Skip to content

Commit

Permalink
tc35815: Fix build error if NAPI enabled
Browse files Browse the repository at this point in the history
This driver contains experimental NAPI code disabled by default.
The commit bea3348 ("[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>
  • Loading branch information
Atsushi Nemoto authored and David S. Miller committed Apr 2, 2009
1 parent 9961d84 commit a2c465d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tc35815.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2c465d

Please sign in to comment.