Source-Changes-HG archive

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

[src/trunk]: src/sys/kern do_sys_rename: Kill an unused variable.



details:   https://anonhg.NetBSD.org/src/rev/cbf3b571d524
branches:  trunk
changeset: 765920:cbf3b571d524
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Jun 10 13:07:14 2011 +0000

description:
do_sys_rename: Kill an unused variable.

diffstat:

 sys/kern/vfs_syscalls.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 044c4ad2c43a -r cbf3b571d524 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Fri Jun 10 09:29:07 2011 +0000
+++ b/sys/kern/vfs_syscalls.c   Fri Jun 10 13:07:14 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.425 2011/06/05 09:04:22 dsl Exp $   */
+/*     $NetBSD: vfs_syscalls.c,v 1.426 2011/06/10 13:07:14 uebayasi Exp $      */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.425 2011/06/05 09:04:22 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.426 2011/06/10 13:07:14 uebayasi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -3151,7 +3151,6 @@
        struct nameidata fromnd, tond;
        struct mount *fs;
        struct lwp *l = curlwp;
-       struct proc *p;
        int error;
 
        error = pathbuf_maybe_copyin(from, seg, &frompb);
@@ -3294,7 +3293,6 @@
 #endif /* NVERIEXEC > 0 */
 
 out:
-       p = l->l_proc;
        if (!error) {
                error = VOP_RENAME(fromnd.ni_dvp, fromnd.ni_vp, &fromnd.ni_cnd,
                                   tond.ni_dvp, tond.ni_vp, &tond.ni_cnd);



Home | Main Index | Thread Index | Old Index