The branch main has been updated by emaste:

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

commit 093cf790569775b80662926efea6d9d3464bde94
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2021-11-22 02:19:43 +0000
Commit:     Ed Maste <ema...@freebsd.org>
CommitDate: 2021-11-22 02:21:34 +0000

    makefs: remove set but not used variables
    
    These were leftovers from the port from NetBSD (where they are used).
    
    Sponsored by:   The FreeBSD Foundation
---
 usr.sbin/makefs/msdos.c                | 2 --
 usr.sbin/makefs/msdos/msdosfs_vfsops.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/usr.sbin/makefs/msdos.c b/usr.sbin/makefs/msdos.c
index 74d55a7f490f..ec38c1d207dd 100644
--- a/usr.sbin/makefs/msdos.c
+++ b/usr.sbin/makefs/msdos.c
@@ -150,7 +150,6 @@ msdos_makefs(const char *image, const char *dir, fsnode 
*root, fsinfo_t *fsopts)
        struct m_vnode vp, rootvp;
        struct timeval start;
        struct msdosfsmount *pmp;
-       uint32_t flags;
 
        assert(image != NULL);
        assert(dir != NULL);
@@ -184,7 +183,6 @@ msdos_makefs(const char *image, const char *dir, fsnode 
*root, fsinfo_t *fsopts)
        fsopts->fd = open(image, O_RDWR);
        vp.fs = fsopts;
 
-       flags = 0;
        if ((pmp = m_msdosfs_mount(&vp)) == NULL)
                err(1, "msdosfs_mount");
 
diff --git a/usr.sbin/makefs/msdos/msdosfs_vfsops.c 
b/usr.sbin/makefs/msdos/msdosfs_vfsops.c
index 508e044ac1ca..d543adc2bbcd 100644
--- a/usr.sbin/makefs/msdos/msdosfs_vfsops.c
+++ b/usr.sbin/makefs/msdos/msdosfs_vfsops.c
@@ -83,7 +83,6 @@ m_msdosfs_mount(struct m_vnode *devvp)
        struct byte_bpb710 *b710;
        uint8_t SecPerClust;
        int     ronly = 0, error;
-       int     bsize;
        unsigned secsize = 512;
 
        MSDOSFS_DPRINTF(("%s(bread 0)\n", __func__));
@@ -103,7 +102,6 @@ m_msdosfs_mount(struct m_vnode *devvp)
                error = EINVAL;
                goto error_exit;
        }
-       bsize = 0;
 
        pmp = ecalloc(1, sizeof(*pmp));
        /*

Reply via email to