The branch main has been updated by mjg:

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

commit cb2bfd3ecb7029fb2ba1d0a8d4091b8b3e68167a
Author:     Mateusz Guzik <m...@freebsd.org>
AuthorDate: 2021-11-24 21:21:59 +0000
Commit:     Mateusz Guzik <m...@freebsd.org>
CommitDate: 2021-11-24 21:21:59 +0000

    geom_journal: plug set-but-not-unused vars
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/geom/journal/g_journal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index e57d58d6f7ca..954d0dbf2c6b 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -421,15 +421,13 @@ static int
 g_journal_access(struct g_provider *pp, int acr, int acw, int ace)
 {
        struct g_journal_softc *sc;
-       int dcr, dcw, dce;
+       int dcw;
 
        g_topology_assert();
        GJ_DEBUG(2, "Access request for %s: r%dw%de%d.", pp->name,
            acr, acw, ace);
 
-       dcr = pp->acr + acr;
        dcw = pp->acw + acw;
-       dce = pp->ace + ace;
 
        sc = pp->geom->softc;
        if (sc == NULL || (sc->sc_flags & GJF_DEVICE_DESTROY)) {

Reply via email to