remove usused code

This commit is contained in:
christos 2013-10-17 21:04:44 +00:00
parent ba0dd1c1e6
commit 9fda064713
2 changed files with 4 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: smbfs_kq.c,v 1.25 2012/01/27 19:48:40 para Exp $ */
/* $NetBSD: smbfs_kq.c,v 1.26 2013/10/17 21:04:44 christos Exp $ */
/*-
* Copyright (c) 2003, 2008 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smbfs_kq.c,v 1.25 2012/01/27 19:48:40 para Exp $");
__KERNEL_RCSID(0, "$NetBSD: smbfs_kq.c,v 1.26 2013/10/17 21:04:44 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -387,7 +387,6 @@ filt_smbfsvnode(struct knote *kn, long hint)
{
struct kevq *ke = (struct kevq *)kn->kn_hook;
struct vnode *vp = ke->vp;
int fflags;
switch (hint) {
case NOTE_REVOKE:
@ -398,14 +397,12 @@ filt_smbfsvnode(struct knote *kn, long hint)
return (1);
case 0:
mutex_enter(vp->v_interlock);
fflags = kn->kn_fflags;
mutex_exit(vp->v_interlock);
break;
default:
KASSERT(mutex_owned(vp->v_interlock));
if ((kn->kn_sfflags & hint) != 0)
kn->kn_fflags |= hint;
fflags = kn->kn_fflags;
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: smbfs_vfsops.c,v 1.95 2011/10/07 09:35:05 hannken Exp $ */
/* $NetBSD: smbfs_vfsops.c,v 1.96 2013/10/17 21:04:44 christos Exp $ */
/*
* Copyright (c) 2000-2001, Boris Popov
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.95 2011/10/07 09:35:05 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.96 2013/10/17 21:04:44 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -160,14 +160,12 @@ smbfs_mount(struct mount *mp, const char *path, void *data, size_t *data_len)
struct smb_vc *vcp;
struct smb_share *ssp = NULL;
struct smb_cred scred;
struct proc *p;
char *fromname;
int error;
if (*data_len < sizeof *args)
return EINVAL;
p = l->l_proc;
if (mp->mnt_flag & MNT_GETARGS) {
smp = VFSTOSMBFS(mp);
if (smp == NULL)