From nobody Thu Nov 25 03:33:56 2021 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 28C2D1891F5C; Thu, 25 Nov 2021 03:33:57 +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 4J03Pw6Dbsz4Tkn; Thu, 25 Nov 2021 03:33:56 +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 ACF43163BB; Thu, 25 Nov 2021 03:33:56 +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 1AP3XuSD017174; Thu, 25 Nov 2021 03:33:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AP3XuEJ017173; Thu, 25 Nov 2021 03:33:56 GMT (envelope-from git) Date: Thu, 25 Nov 2021 03:33:56 GMT Message-Id: <202111250333.1AP3XuEJ017173@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: 79ed7cb3df27 - main - Fix "set but not used" warnings in the ciss 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 79ed7cb3df2737a18f76b6173e7de864dfb869e0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637811236; 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=8kPyEEltaSLeb92Ylbko4/dofqC9UeUW2HKhYcFCgAk=; b=mAgHw16Omes0FldY9Hoy/Khc4bDflac/n+McTgO4zt/46ySm1yxmWIqAQw0e9XhQVBhFwq xXUid3B0lk8WlzfY7eXVJb19WJQ9G6/gEIYKr2nMX71e1Hs5AJ2iMXEr9OrqE1FADBwSle SXnIyBtt2pRamtUTlgWiAbN5Rqyzg3faWJ05JNs5VcvdzsIF3Y+YJMgOYaI+IIW135no2w QqncVoWU2ZiQD2q3IMhXhEL09f7EiADSp8NmiOkp46/5Tey1WtXUy2QsnaxQSxpe4LrgYN Sq8eSDHfVku9CK/AYaj2S9OZN+KX0luKpczo4ii1ytlLLaGvDQ+lElmNMLyv8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637811236; a=rsa-sha256; cv=none; b=wJrcVRId3OO4BlXyw3U9IiNi34ULPKmBQVBXiwg6ah/LFjAeANfbxJloYTAEF+vh3Cio4t optZYC+0SE5GDLT+7Tk5S//qaxZ95GJb3yKEWtNU/2Cm95kYSdjTKUAWD8BGV7z5lzM62G 0v7jREGu1DKVW0FPvRv1PoRDOzr0JQE9F2G3MUMGWHd0yQ1r7rT+8q1QCiHuS5YYVtI/Y8 Tl9IXCou/MdTjZEHlPniJT6i9OMYwCsuv7W7MdeNefy2xIK8zbcEdH9Ga5pbBr6rcz3kjz kmjtLgQe8PxKMiSBA7OWiIL+oMaoTzPc+MTsE8fE1YKkBJ6daNtn906eM0tnxA== 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=79ed7cb3df2737a18f76b6173e7de864dfb869e0 commit 79ed7cb3df2737a18f76b6173e7de864dfb869e0 Author: Scott Long AuthorDate: 2021-11-25 03:33:39 +0000 Commit: Scott Long CommitDate: 2021-11-25 03:33:39 +0000 Fix "set but not used" warnings in the ciss driver. --- sys/dev/ciss/ciss.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index d87f32610b20..100562cfc737 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -1489,12 +1489,11 @@ ciss_init_physical(struct ciss_softc *sc) struct ciss_lun_report *cll; int error = 0, i; int nphys; - int bus, target; + int bus; debug_called(1); bus = 0; - target = 0; cll = ciss_report_luns(sc, CISS_OPCODE_REPORT_PHYSICAL_LUNS, sc->ciss_cfg->max_physical_supported); @@ -2077,7 +2076,7 @@ ciss_free(struct ciss_softc *sc) static int ciss_start(struct ciss_request *cr) { - struct ciss_command *cc; /* XXX debugging only */ + struct ciss_command *cc __diagused; int error; cc = cr->cr_cc; @@ -2535,12 +2534,9 @@ ciss_preen_command(struct ciss_request *cr) static void ciss_release_request(struct ciss_request *cr) { - struct ciss_softc *sc; debug_called(2); - sc = cr->cr_sc; - /* release the request to the free queue */ ciss_requeue_free(cr); } @@ -3065,7 +3061,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb) case XPT_GET_TRAN_SETTINGS: { struct ccb_trans_settings *cts = &ccb->cts; - int bus, target; + int bus __diagused, target __diagused; struct ccb_trans_settings_spi *spi = &cts->xport_specific.spi; struct ccb_trans_settings_scsi *scsi = &cts->proto_specific.scsi; @@ -3667,14 +3663,12 @@ ciss_notify_event(struct ciss_softc *sc) static void ciss_notify_complete(struct ciss_request *cr) { - struct ciss_command *cc; struct ciss_notify *cn; struct ciss_softc *sc; int scsi_status; int command_status; debug_called(1); - cc = cr->cr_cc; cn = (struct ciss_notify *)cr->cr_data; sc = cr->cr_sc;