summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2006-12-14 10:55:04 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2006-12-14 10:55:04 +0000
commita67c0fe05d45cfb5d508376ffe6c104be9d78393 (patch)
tree1490019e5531bfa801ee34abb7c2f29dfd178fbc
parent6a777c5e0b9521b7195c1d7fa9c013da3d5c1661 (diff)
Remove dirsperblk, which is not used after it is calculated.
ok weingart@ pedro@
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index a0de9923ad1..4f312c02827 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vfsops.c,v 1.43 2006/12/14 07:37:24 tom Exp $ */
+/* $OpenBSD: msdosfs_vfsops.c,v 1.44 2006/12/14 10:55:03 tom Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */
/*-
@@ -272,7 +272,6 @@ msdosfs_mountfs(devvp, mp, p, argp)
u_int8_t SecPerClust;
int ronly, error, bmapsiz;
int bsize = 0, dtype = 0, tmp;
- uint32_t dirsperblk;
uint32_t fat_max_clusters;
/*
@@ -371,8 +370,6 @@ msdosfs_mountfs(devvp, mp, p, argp)
pmp->pm_HugeSectors = pmp->pm_Sectors;
}
- dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry);
-
if (pmp->pm_RootDirEnts == 0) {
if (pmp->pm_Sectors || pmp->pm_FATsecs ||
getushort(b710->bpbFSVers)) {