diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:59:00 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-12 21:59:00 +0000 |
commit | c3b1cbc9e69b7b6aa695bc5c804838dee73df6bf (patch) | |
tree | d9b9b5b9a3a9a3cbe67ec8f1cfc7b38e373761a9 /sys/dev/mlx5/mlx5_en | |
parent | 1ae22e62e45a4ccda5beabf9c647cd3552fefa06 (diff) | |
download | src-c3b1cbc9e69b7b6aa695bc5c804838dee73df6bf.tar.gz src-c3b1cbc9e69b7b6aa695bc5c804838dee73df6bf.zip |
mlx5 RATELIMIT: Remove an unused variable.
Diffstat (limited to 'sys/dev/mlx5/mlx5_en')
-rw-r--r-- | sys/dev/mlx5/mlx5_en/mlx5_en_rl.c | 3 |
1 files changed, 0 insertions, 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; } |