Date: Tue, 12 Apr 2022 21:59:43 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c3b1cbc9e69b - main - mlx5 RATELIMIT: Remove an unused variable. Message-ID: <202204122159.23CLxhBC035902@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204122159.23CLxhBC035902>