diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2010-01-17 20:25:59 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2010-01-17 20:25:59 +0000 |
commit | dbc692771d6400f4bf70c1520ecb1092c2c51129 (patch) | |
tree | 22757fa382dcf6d88f969a3695779fa159844561 /sys | |
parent | 62c35d66897c4b0ca88c530499b66cfbc13a6d7c (diff) |
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer.
ok otto@ krw@ tedu@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/isofs/cd9660/cd9660_lookup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_lookup.c b/sys/isofs/cd9660/cd9660_lookup.c index 208bbab842f..c7ec832e832 100644 --- a/sys/isofs/cd9660/cd9660_lookup.c +++ b/sys/isofs/cd9660/cd9660_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_lookup.c,v 1.16 2009/07/09 22:29:55 thib Exp $ */ +/* $OpenBSD: cd9660_lookup.c,v 1.17 2010/01/17 20:25:58 chl Exp $ */ /* $NetBSD: cd9660_lookup.c,v 1.18 1997/05/08 16:19:59 mycroft Exp $ */ /*- @@ -110,7 +110,6 @@ cd9660_lookup(v) struct vnode *tdp; /* returned by cd9660_vget_internal */ u_long bmask; /* block offset mask */ int lockparent; /* 1 => lockparent flag is set */ - int wantparent; /* 1 => wantparent or lockparent flag */ int error; ino_t ino = 0; int reclen; @@ -135,7 +134,6 @@ cd9660_lookup(v) dp = VTOI(vdp); imp = dp->i_mnt; lockparent = flags & LOCKPARENT; - wantparent = flags & (LOCKPARENT|WANTPARENT); /* * Check accessiblity of directory. |