makefs: remove set but not used variables

These were leftovers from the port from NetBSD (where they are used).

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-11-21 21:19:43 -05:00
parent 06bd74e1e3
commit 093cf79056
2 changed files with 0 additions and 4 deletions

View File

@ -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");

View File

@ -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));
/*