geom_eli: mostly plug set-but-not-unused vars

The remaining case is an ignored error.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-12-09 18:05:06 +00:00
parent 0d81fba680
commit c904812018
3 changed files with 4 additions and 4 deletions

View file

@ -657,7 +657,7 @@ g_eli_worker(void *arg)
struct g_eli_softc *sc;
struct g_eli_worker *wr;
struct bio *bp;
int error;
int error __diagused;
wr = arg;
sc = wr->w_softc;
@ -824,7 +824,7 @@ g_eli_last_close(void *arg, int flags __unused)
{
struct g_geom *gp;
char gpname[64];
int error;
int error __diagused;
g_topology_assert();
gp = arg;

View file

@ -456,7 +456,7 @@ g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp)
u_int i, lsec, nsec, data_secsize, decr_secsize, encr_secsize;
off_t dstoff;
u_char *p, *data, *authkey, *plaindata;
int error;
int error __diagused;
bool batch;
G_ELI_LOGREQ(3, bp, "%s", __func__);

View file

@ -263,7 +263,7 @@ g_eli_crypto_run(struct g_eli_worker *wr, struct bio *bp)
u_int i, nsec, secsize;
off_t dstoff;
u_char *data = NULL;
int error, pages_offset;
int error __diagused, pages_offset;
bool batch;
G_ELI_LOGREQ(3, bp, "%s", __func__);