diff options
Diffstat (limited to 'sys/fs/fuse/fuse_file.c')
-rw-r--r-- | sys/fs/fuse/fuse_file.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/fs/fuse/fuse_file.c b/sys/fs/fuse/fuse_file.c index aa2f56144eb5..1991d4e6f6bb 100644 --- a/sys/fs/fuse/fuse_file.c +++ b/sys/fs/fuse/fuse_file.c @@ -102,7 +102,6 @@ fuse_filehandle_open(struct vnode *vp, struct fuse_open_out *foo; int err = 0; - int isdir = 0; int oflags = 0; int op = FUSE_OPEN; @@ -120,7 +119,6 @@ fuse_filehandle_open(struct vnode *vp, oflags = fuse_filehandle_xlate_to_oflags(fufh_type); if (vnode_isdir(vp)) { - isdir = 1; op = FUSE_OPENDIR; if (fufh_type != FUFH_RDONLY) { printf("FUSE:non-rdonly fh requested for a directory?\n"); @@ -172,7 +170,6 @@ fuse_filehandle_close(struct vnode *vp, struct fuse_filehandle *fufh = NULL; int err = 0; - int isdir = 0; int op = FUSE_RELEASE; fuse_trace_printf("fuse_filehandle_put(vp=%p, fufh_type=%d)\n", @@ -187,10 +184,8 @@ fuse_filehandle_close(struct vnode *vp, if (fuse_isdeadfs(vp)) { goto out; } - if (vnode_isdir(vp)) { + if (vnode_isdir(vp)) op = FUSE_RELEASEDIR; - isdir = 1; - } fdisp_init(&fdi, sizeof(*fri)); fdisp_make_vp(&fdi, op, vp, td, cred); fri = fdi.indata; |