git: 8f7878e3e151 - main - geom_eli: fix set but not used warning

From: Robert Wing <rew_at_FreeBSD.org>
Date: Mon, 04 Apr 2022 21:21:29 UTC
The branch main has been updated by rew:

URL: https://cgit.FreeBSD.org/src/commit/?id=8f7878e3e151e27cb5233f7aaad42fae4ba1cefe

commit 8f7878e3e151e27cb5233f7aaad42fae4ba1cefe
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2022-04-04 21:20:27 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
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();