summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/svr4/svr4_misc.c')
-rw-r--r--sys/compat/svr4/svr4_misc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 2bf5df9..0f43612 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);
OpenPOWER on IntegriCloud