summaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_lookup.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-17 20:23:59 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-17 20:23:59 +0000
commit62c35d66897c4b0ca88c530499b66cfbc13a6d7c (patch)
tree4ac4e940a224a31fca1b352cb4b4e91fe7fc91eb /sys/msdosfs/msdosfs_lookup.c
parentaa066d64395104cf0257fe6d5ab392fc8b00c9b1 (diff)
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok tedu@ krw@
Diffstat (limited to 'sys/msdosfs/msdosfs_lookup.c')
-rw-r--r--sys/msdosfs/msdosfs_lookup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/msdosfs/msdosfs_lookup.c b/sys/msdosfs/msdosfs_lookup.c
index c84e13de455..74a6a442653 100644
--- a/sys/msdosfs/msdosfs_lookup.c
+++ b/sys/msdosfs/msdosfs_lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_lookup.c,v 1.22 2009/08/13 22:34:29 jasper Exp $ */
+/* $OpenBSD: msdosfs_lookup.c,v 1.23 2010/01/17 20:23:58 chl Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.34 1997/10/18 22:12:27 ws Exp $ */
/*-
@@ -885,9 +885,7 @@ readep(struct msdosfsmount *pmp, uint32_t dirclust, uint32_t diroffset,
int error;
daddr64_t bn;
int blsize;
- uint32_t boff;
- boff = diroffset & ~pmp->pm_crbomask;
blsize = pmp->pm_bpcluster;
if (dirclust == MSDOSFSROOT
&& de_blk(pmp, diroffset + blsize) > pmp->pm_rootdirsize)