git: 8ee68ab86778 - stable/13 - Fix "set but not used" for the sym driver.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Apr 2024 19:42:18 UTC
The branch stable/13 has been updated by marius:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ee68ab867785b90a77c9c0e6c2ef92fc8a265b1
commit 8ee68ab867785b90a77c9c0e6c2ef92fc8a265b1
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-03 22:18:39 +0000
Commit: Marius Strobl <marius@FreeBSD.org>
CommitDate: 2024-04-18 19:41:36 +0000
Fix "set but not used" for the sym driver.
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 5045cb8f18f9f79354f93174ba7f9fd2f7ea6994)
---
sys/dev/sym/sym_hipd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 8517d79124b0..d4f220871452 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -5460,7 +5460,7 @@ out_reject:
*/
static int sym_compute_residual(hcb_p np, ccb_p cp)
{
- int dp_sg, dp_sgmin, resid = 0;
+ int dp_sg, resid = 0;
int dp_ofs = 0;
/*
@@ -5507,7 +5507,6 @@ static int sym_compute_residual(hcb_p np, ccb_p cp)
* We are now full comfortable in the computation
* of the data residual (2's complement).
*/
- dp_sgmin = SYM_CONF_MAX_SG - cp->segments;
resid = -cp->ext_ofs;
for (dp_sg = cp->ext_sg; dp_sg < SYM_CONF_MAX_SG; ++dp_sg) {
u_int tmp = scr_to_cpu(cp->phys.data[dp_sg].size);