From nobody Fri Dec 03 22:18:52 2021 X-Original-To: dev-commits-src-main@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 E593D18C1642; Fri, 3 Dec 2021 22:18:52 +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 4J5S0D4kYWz3k95; Fri, 3 Dec 2021 22:18:52 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 7E61518F86; Fri, 3 Dec 2021 22:18:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B3MIqPT072369; Fri, 3 Dec 2021 22:18:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B3MIqOj072368; Fri, 3 Dec 2021 22:18:52 GMT (envelope-from git) Date: Fri, 3 Dec 2021 22:18:52 GMT Message-Id: <202112032218.1B3MIqOj072368@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: 5045cb8f18f9 - main - Fix "set but not used" for the sym driver. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5045cb8f18f9f79354f93174ba7f9fd2f7ea6994 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638569932; 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=X6OxU9ZpZdoj1dlib69MIt+ocnwPL7S3oEzult7sipE=; b=BHvi2sv5FTqZtPn/5vVNsk7mWAzM41rvjJAdfe7q1PsVZk/NJCBrOuLDWyKAWeSmzZFTV8 LVGCNErQW/BovRCeIU1uPZZ53/VVHoD2phv1myQor7cMNmY+JN6q93bA2Dc34rScO6brxL 2256rCl5CmHmIQfFdi4r8nLdN5/E1MG4wZvdf04pvfNyiBeERdJyy6vDLMgtSMmmp4C9+k HgolXNdFM3zlHEeojQdTr3FPDFkszcZ6M6/DTeNW9ijMSdtYEbMHnpRpb86d0qNfdLWnax ALLPw1ngQHgNgAAkUr7PkWTNfTY8s5TIRoPACZAuVezZbkacCCztb3znkiGrhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638569932; a=rsa-sha256; cv=none; b=HYzM/G+GvpH/5JVBNErj9qgMQ3ISPfsE186c4zA5ISfu8a+knSqvPDFRsxikoh2xEavLyw ssZoQ2thOrfDvACr/gMzEZk93usHB0tcb8oPgnUZvJEkJ4zs3JwvBXpCOq3Se8mAdhICZs 4w2qy7thuSTr2wh1a1u9bPL7vN97YRvAwRdyG6L1osaQk1O06tg8cFDajO/+P8B1SUCUqV Dhr0V6w9/Hok3vVgHoTcFHAMrDcpWDXVqbQppoIKa18o4WK5nXyz+2vn7J0MC5ocWeLIVe JXeWjqtmvrz/pptlnj8Y3z2LExkqXpC8AZT3HS/Uin3I7fZaudkpptsVjitKAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=5045cb8f18f9f79354f93174ba7f9fd2f7ea6994 commit 5045cb8f18f9f79354f93174ba7f9fd2f7ea6994 Author: Scott Long AuthorDate: 2021-12-03 22:18:39 +0000 Commit: Scott Long 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);