git: 5045cb8f18f9 - main - Fix "set but not used" for the sym driver.

From: Scott Long <scottl_at_FreeBSD.org>
Date: Fri, 03 Dec 2021 22:18:52 UTC
The branch main has been updated by scottl:

URL: https://cgit.FreeBSD.org/src/commit/?id=5045cb8f18f9f79354f93174ba7f9fd2f7ea6994

commit 5045cb8f18f9f79354f93174ba7f9fd2f7ea6994
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-03 22:18:39 +0000
Commit:     Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-03 22:18:39 +0000

    Fix "set but not used" for the sym driver.
    
    Sponsored by: Rubicon Communications, LLC ("Netgate")
---
 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 61104f75fd92..35481994d292 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -5461,7 +5461,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;
 
 	/*
@@ -5508,7 +5508,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);