Commit 803ea346 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Saeed Mahameed

net/mlx5e: simplify condition after napi budget handling change

Since recent commit budget can't be 0 here.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent eb8e9fae
......@@ -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--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment