Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/i386 linux_machdepioctl: remove duplic...



details:   https://anonhg.NetBSD.org/src/rev/e234df85fdb4
branches:  trunk
changeset: 583750:e234df85fdb4
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Aug 21 13:13:50 2005 +0000

description:
linux_machdepioctl: remove duplicated FILE_USE/UNUSE.

diffstat:

 sys/compat/linux/arch/i386/linux_machdep.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r f0dbed4c7208 -r e234df85fdb4 sys/compat/linux/arch/i386/linux_machdep.c
--- a/sys/compat/linux/arch/i386/linux_machdep.c        Sun Aug 21 13:12:59 2005 +0000
+++ b/sys/compat/linux/arch/i386/linux_machdep.c        Sun Aug 21 13:13:50 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_machdep.c,v 1.110 2005/06/25 02:19:06 christos Exp $     */
+/*     $NetBSD: linux_machdep.c,v 1.111 2005/08/21 13:13:50 yamt Exp $ */
 
 /*-
  * Copyright (c) 1995, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.110 2005/06/25 02:19:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.111 2005/08/21 13:13:50 yamt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vm86.h"
@@ -1097,12 +1097,10 @@
                 * XXX hack: if the function returns EJUSTRETURN,
                 * it has stuffed a sysctl return value in pt.data.
                 */
-               FILE_USE(fp);
                ioctlf = fp->f_ops->fo_ioctl;
                pt.com = SCARG(uap, com);
                pt.data = SCARG(uap, data);
                error = ioctlf(fp, PTIOCLINUX, (caddr_t)&pt, p);
-               FILE_UNUSE(fp, p);
                if (error == EJUSTRETURN) {
                        retval[0] = (register_t)pt.data;
                        error = 0;



Home | Main Index | Thread Index | Old Index