From nobody Thu Apr 18 19:42:18 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VL7TQ2yXpz5HS8f; Thu, 18 Apr 2024 19:42:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VL7TQ1q5zz4Ggm; Thu, 18 Apr 2024 19:42:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713469338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6R1wHhSzF9GltNRrb3SMme/q5W9U089GtA56beMHNVg=; b=NiX5rUprlZ7a0eHRaPGA4c+YZpmxbexE/q+ck7T6M7n1iThHIsWIbYq/cfcUk7ST1qisW0 CQkqUC29ULgVR76Uv6yLHgHK4GOknLgek5VsAQMPppiUKU0wjuYMBtxYhQP6N+R9zYSNbI Tm8baurTVwsUIa5IEGrv3AWRwTGfqUxkgy8e7Ht+DR+4TlVREDdHiWOA8W7Rd4Qr7vWAYi B4vvvfL3+891Xz2sOctZ0IFAgkI0eBCV98ax86Y+DIgU80VuM21F2Bob4ta65XekSvqLSe uDGYkaHcYAHZOLDsODuHozD6tLiRPUoNwt5wmyJ7Af9Pe+ws5vQkfVx9pz+ctg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713469338; a=rsa-sha256; cv=none; b=WQLJ1hoG8byjMjS8CGHIStVcU3/4SW9Y+WlNWq3dyoxVTdvqCmnJMaVcU+q4g82L6HNWAw B60JwjD7TJLRLi53mt6sMdYUpZGT1XUu5TQS3Y2dlYSsOjFJN6dri7+qSp+B5/qvJKo4Q4 0Y1jsnOuj1laMKOigT5jW2jS1Nr23EXkbXtcTw4tyCVHIhUvmzQqcSpE3vzgSFxG7afEpg zGfo1T/gRW60x611NAvKpT9dx0ZYMt8663nnyObcedRX5bzwqT3FQ/yd12s7jBmRdQAlvw dV1vyXO/qAIFtVsVGVvCgdFU5IOLnNJVtS+CHEQA1gH18edTtIuzvSxVjWOY+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713469338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6R1wHhSzF9GltNRrb3SMme/q5W9U089GtA56beMHNVg=; b=tjrTWKICKAeLbgu9MzQL7n0gWxpu+RpysCrWi9niZtCOkUigr00QOIkWqbC2Cy3yT27YgW S+lvIlp8TMUFwym5rSjsreWHQIDSB2/OQCFIoMjj7+yfK0R3+DVFEPrM2rYXXZsofjmmhf mIhLXPfznMvphEUORhDI75fgRKS0R+zclI8xeA8nrEUYj/ZOPc+GgAKK+EJfReRlFHMn13 7qYbuWxKfjTuJWUKKEtPZjceLRWNVse4CPmXbPFXxI/pbr+MtIfkwFpEg4VV4B0lg3a7bI Pg7x1TrLbNa9lt5H8bftH6CZ1O5unRwbZZJs5vSKBF5uz/5Q1Y0ef+7XVKopLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VL7TQ1QmlzNWy; Thu, 18 Apr 2024 19:42:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43IJgINZ066154; Thu, 18 Apr 2024 19:42:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43IJgI9a066151; Thu, 18 Apr 2024 19:42:18 GMT (envelope-from git) Date: Thu, 18 Apr 2024 19:42:18 GMT Message-Id: <202404181942.43IJgI9a066151@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Marius Strobl Subject: git: 8ee68ab86778 - stable/13 - Fix "set but not used" for the sym driver. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: marius X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8ee68ab867785b90a77c9c0e6c2ef92fc8a265b1 Auto-Submitted: auto-generated The branch stable/13 has been updated by marius: URL: https://cgit.FreeBSD.org/src/commit/?id=8ee68ab867785b90a77c9c0e6c2ef92fc8a265b1 commit 8ee68ab867785b90a77c9c0e6c2ef92fc8a265b1 Author: Scott Long AuthorDate: 2021-12-03 22:18:39 +0000 Commit: Marius Strobl 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);