mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
tc35815: Fix build error if NAPI enabled
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>
This commit is contained in:
parent
9961d84270
commit
a2c465db9d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue