aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-11-19 04:12:32 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-11-19 04:12:32 +0000
commit501f5ff1238deb71c5d5b7015b4ed2d69990e8d0 (patch)
tree3f95fbdecbf14d5e370381875947af11393fa27e
parentf6a19065697cacda6e3b1c5d92875eb2786cb945 (diff)
Notes
-rw-r--r--sys/compat/linux/linux_file.c6
-rw-r--r--sys/compat/svr4/svr4_misc.c6
2 files changed, 0 insertions, 12 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 96af89c2b848..64fdb0147f2e 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -255,7 +255,6 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args,
struct file *fp;
struct uio auio;
struct iovec aiov;
- struct vattr va;
off_t off;
struct l_dirent linux_dirent;
struct l_dirent64 linux_dirent64;
@@ -277,11 +276,6 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args,
return (EINVAL);
}
- if ((error = VOP_GETATTR(vp, &va, td->td_ucred, td))) {
- fdrop(fp, td);
- return (error);
- }
-
nbytes = args->count;
if (nbytes == 1) {
/* readdir(2) case. Always struct dirent. */
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 2bf5df92cd20..0f43612dd8ea 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -254,7 +254,6 @@ svr4_sys_getdents64(td, uap)
struct file *fp;
struct uio auio;
struct iovec aiov;
- struct vattr va;
off_t off;
struct svr4_dirent64 svr4_dirent;
int buflen, error, eofflag, nbytes, justone;
@@ -279,11 +278,6 @@ svr4_sys_getdents64(td, uap)
return (EINVAL);
}
- if ((error = VOP_GETATTR(vp, &va, td->td_ucred, td))) {
- fdrop(fp, td);
- return error;
- }
-
nbytes = uap->nbytes;
if (nbytes == 1) {
nbytes = sizeof (struct svr4_dirent64);