From nobody Mon Apr 04 21:21:29 2022 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 C073F1A9C220; Mon, 4 Apr 2022 21:21:29 +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 4KXNxj4x6pz4knn; Mon, 4 Apr 2022 21:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649107289; 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=m+bJI64XsWStsgv61heF7pD3de1I52igazhpWQbiZpQ=; b=ml+SbLu5GeydQa3XllyjKfab6irYW9uidZoU7hAhczIYS6jgQ9lDptnR/Ewas+yeMPCpVq NnezVRai9Pm+Ir5MKzDKnedxFxUGXZw0Yu8pHTNSvAf2yW25w7rXLvl4MwpWWh+Sxx3JUg 8gHoCMANp2Tl782FPIwGf+2nETyeJtEZX+ljDdaboBx24kcUsTaTi8fYpAQtWjcCk0kVu2 atgyTAPY53IgLY6rTizgUMoSH/JOJQGoXWjl8mJ7BcEqFM+5sYonDbBMGfIKh31aC0Jf9z O5nNTBsNw52j86Wl7pwfgQOxNIH9Tw6vahl6OZtIdCR6Ldw/Y0YHhspx6rKWkA== 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 8966219555; Mon, 4 Apr 2022 21:21:29 +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 234LLTRG025756; Mon, 4 Apr 2022 21:21:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 234LLTm0025755; Mon, 4 Apr 2022 21:21:29 GMT (envelope-from git) Date: Mon, 4 Apr 2022 21:21:29 GMT Message-Id: <202204042121.234LLTm0025755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Robert Wing Subject: git: 8f7878e3e151 - main - geom_eli: fix set but not used warning 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: rew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f7878e3e151e27cb5233f7aaad42fae4ba1cefe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649107289; 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=m+bJI64XsWStsgv61heF7pD3de1I52igazhpWQbiZpQ=; b=CnJzsAymR5tbuwQwxEjDP5OPLimReC2TTkyG4S6QXwoq5q1JmwJ3OTN6ms/yVe9QUe23aY VC94WD00p3GZuFQvyqRo7bj/No1WR0GJtejmNUrcHL4xrumgI08wYjLZ22oCZEVxA5zLHI GIkFrVRRsclCj7IRb2XKLtG/cFjjZayS2w2hx/5NhzVrb1y4S4jVudWaWVDX+JwTwJheX3 ozf+IiWwQieV0FPsSluvStTCfrb8hrjJHGiytCE2BtW5VdFik+HryhccvFNpDBrxY1AikQ ZVljH/MCUxhS7i+aG2OiEC6wd+k5roT325OO43ds8z9atMLKlZGngUtglurXnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649107289; a=rsa-sha256; cv=none; b=BXu7CEFzk2/lT9lMWLuuZaevfMzKDU9ZQw4VkcGhhtKwXqPcncDvtiJG8yeMfH8iFwigd7 0PWdKhVZ0sBk/wJfoh7WQlb7CAEEsT0JeBs8EOJja2SCqdlh7XDUtfcPLlUgTStkhY+0ZX 9E9KMNx044iGUyFe5BIf0z6jtx6F/vV7vWvEj4YvXNZTRyysOEx3556d8oZ85Ty+ZAqRJb 5pa6B++K0OsP2k3ggk8wp1BLO2nxtx5YFrgC6s8wZHqwaX0hlXnV9fVTDMji1sQwk7nZLr 24pTcKr3mTdIlqlwJlauwNOdW3c8n4tnswWOsF3UO24eXBGtZl9bncME6g0gjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=8f7878e3e151e27cb5233f7aaad42fae4ba1cefe commit 8f7878e3e151e27cb5233f7aaad42fae4ba1cefe Author: Robert Wing AuthorDate: 2022-04-04 21:20:27 +0000 Commit: Robert Wing CommitDate: 2022-04-04 21:20:27 +0000 geom_eli: fix set but not used warning --- sys/geom/eli/g_eli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 4978523cbebe..74dd5de3dc83 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -1586,7 +1586,6 @@ g_eli_shutdown_pre_sync(void *arg, int howto) struct g_geom *gp, *gp2; struct g_provider *pp; struct g_eli_softc *sc; - int error; mp = arg; g_topology_lock(); @@ -1602,7 +1601,7 @@ g_eli_shutdown_pre_sync(void *arg, int howto) sc->sc_flags |= G_ELI_FLAG_RW_DETACH; gp->access = g_eli_access; } else { - error = g_eli_destroy(sc, TRUE); + (void) g_eli_destroy(sc, TRUE); } } g_topology_unlock();