diff options
author | mpi <mpi@openbsd.org> | 2020-02-27 09:10:31 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2020-02-27 09:10:31 +0000 |
commit | db7aa9821c9615b2b21dc263b8e1f99309ff4e4a (patch) | |
tree | 0d64665fda5bf055faf179b3e286aa3b362761c4 /sys/msdosfs/msdosfs_vnops.c | |
parent | Do not set A_JOIN unconditionally. Otherwise join "" takes effect even (diff) | |
download | wireguard-openbsd-db7aa9821c9615b2b21dc263b8e1f99309ff4e4a.tar.xz wireguard-openbsd-db7aa9821c9615b2b21dc263b8e1f99309ff4e4a.zip |
Remove unused "struct proc *" argument from the following functions:
- ufs_chown() & ufs_chmod()
- ufs_reclaim()
- ext2fs_chown() & ext2fs_chmod()
- ntfs_ntget() & ntfs_ntput()
- ntfs_vgetex(), ntfs_ntlookup() & ntfs_ntlookupfile()
While here use `ap->a_p' directly when it is only required to re-enter
the VFS layer in order to help reducing the loop.
ok visa@
Diffstat (limited to 'sys/msdosfs/msdosfs_vnops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index c57265e3834..3d0ba67a31e 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.129 2020/02/20 16:56:52 visa Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.130 2020/02/27 09:10:31 mpi Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -185,15 +185,6 @@ msdosfs_mknod(void *v) int msdosfs_open(void *v) { -#if 0 - struct vop_open_args /* { - struct vnode *a_vp; - int a_mode; - struct ucred *a_cred; - struct proc *a_p; - } */ *ap; -#endif - return (0); } @@ -778,17 +769,6 @@ out: int msdosfs_ioctl(void *v) { -#if 0 - struct vop_ioctl_args /* { - struct vnode *a_vp; - uint32_t a_command; - caddr_t a_data; - int a_fflag; - struct ucred *a_cred; - struct proc *a_p; - } */ *ap; -#endif - return (ENOTTY); } |