Skip to content

Commit 803ea34

Browse files
kuba-mooSaeed Mahameed
authored andcommitted
net/mlx5e: simplify condition after napi budget handling change
Since recent commit budget can't be 0 here. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent eb8e9fa commit 803ea34

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ int mlx5e_napi_poll(struct napi_struct *napi, int budget)
207207
}
208208
ch_stats->aff_change++;
209209
aff_change = true;
210-
if (budget && work_done == budget)
210+
if (work_done == budget)
211211
work_done--;
212212
}
213213

0 commit comments

Comments
 (0)