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:
committed by
Saeed Mahameed
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--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user