git: c3b1cbc9e69b - main - mlx5 RATELIMIT: Remove an unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:43 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3b1cbc9e69b7b6aa695bc5c804838dee73df6bf
commit c3b1cbc9e69b7b6aa695bc5c804838dee73df6bf
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:59:00 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 21:59:00 +0000
mlx5 RATELIMIT: Remove an unused variable.
---
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
index 09ff0143e430..d00e99fce1d4 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
@@ -1448,7 +1448,6 @@ mlx5e_rl_sysctl_handler(SYSCTL_HANDLER_ARGS)
unsigned mode_modify;
unsigned was_opened;
uint64_t value;
- uint64_t old;
int error;
PRIV_LOCK(priv);
@@ -1458,13 +1457,11 @@ mlx5e_rl_sysctl_handler(SYSCTL_HANDLER_ARGS)
MLX5E_RL_RUNLOCK(rl);
if (req != NULL) {
- old = value;
error = sysctl_handle_64(oidp, &value, 0, req);
if (error || req->newptr == NULL ||
value == rl->param.arg[arg2])
goto done;
} else {
- old = 0;
error = 0;
}