mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
net/mlx5e: simplify condition after napi budget handling change
Since recent commit budget can't be 0 here. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
eb8e9fae0a
commit
803ea346bd
|
|
@ -207,7 +207,7 @@ int mlx5e_napi_poll(struct napi_struct *napi, int budget)
|
|||
}
|
||||
ch_stats->aff_change++;
|
||||
aff_change = true;
|
||||
if (budget && work_done == budget)
|
||||
if (work_done == budget)
|
||||
work_done--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user