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:
Jakub Kicinski 2023-06-06 00:12:19 -07:00 committed by Saeed Mahameed
parent eb8e9fae0a
commit 803ea346bd

View File

@ -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--;
}