Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs g/c unneeded local variables in smbfs_read()/sm...
details: https://anonhg.NetBSD.org/src/rev/a7e2e8cd72ee
branches: trunk
changeset: 543283:a7e2e8cd72ee
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Feb 21 20:13:21 2003 +0000
description:
g/c unneeded local variables in smbfs_read()/smbfs_readdir()
diffstat:
sys/fs/smbfs/smbfs_vnops.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (43 lines):
diff -r 4d7662a3aba1 -r a7e2e8cd72ee sys/fs/smbfs/smbfs_vnops.c
--- a/sys/fs/smbfs/smbfs_vnops.c Fri Feb 21 20:12:05 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vnops.c Fri Feb 21 20:13:21 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_vnops.c,v 1.6 2003/02/20 15:35:55 jdolecek Exp $ */
+/* $NetBSD: smbfs_vnops.c,v 1.7 2003/02/21 20:13:21 jdolecek Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -555,12 +555,11 @@
struct ucred *a_cred;
} */ *ap = v;
struct vnode *vp = ap->a_vp;
- struct uio *uio = ap->a_uio;
- SMBVDEBUG("\n");
if (vp->v_type != VREG && vp->v_type != VDIR)
return EPERM;
- return smbfs_readvnode(vp, uio, ap->a_cred);
+
+ return smbfs_readvnode(vp, ap->a_uio, ap->a_cred);
}
int
@@ -881,8 +880,6 @@
int a_ncookies;
} */ *ap = v;
struct vnode *vp = ap->a_vp;
- struct uio *uio = ap->a_uio;
- int error;
if (vp->v_type != VDIR)
return (EPERM);
@@ -892,8 +889,7 @@
return (EOPNOTSUPP);
}
#endif
- error = smbfs_readvnode(vp, uio, ap->a_cred);
- return error;
+ return (smbfs_readvnode(vp, ap->a_uio, ap->a_cred));
}
/* ARGSUSED */
Home |
Main Index |
Thread Index |
Old Index