From: Jakub Kicinski Date: Tue, 6 Jun 2023 07:12:19 +0000 (-0700) Subject: net/mlx5e: simplify condition after napi budget handling change X-Git-Tag: v6.6.17~4555^2~144^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=803ea346bd3ff1ac80fc65cf5899c0ad045d1788;p=platform%2Fkernel%2Flinux-rpi.git net/mlx5e: simplify condition after napi budget handling change Since recent commit budget can't be 0 here. Signed-off-by: Jakub Kicinski Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c index fbb2d96..a7d9b7c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c @@ -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--; }