Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/tmpfs Omit obsolete comment and needless __diagused m...



details:   https://anonhg.NetBSD.org/src/rev/ba45ff480439
branches:  trunk
changeset: 846863:ba45ff480439
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Dec 03 04:59:05 2019 +0000

description:
Omit obsolete comment and needless __diagused marker.

diffstat:

 sys/fs/tmpfs/tmpfs_rename.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (39 lines):

diff -r 6c3d60118d55 -r ba45ff480439 sys/fs/tmpfs/tmpfs_rename.c
--- a/sys/fs/tmpfs/tmpfs_rename.c       Tue Dec 03 04:57:38 2019 +0000
+++ b/sys/fs/tmpfs/tmpfs_rename.c       Tue Dec 03 04:59:05 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tmpfs_rename.c,v 1.9 2019/07/14 05:58:44 maxv Exp $    */
+/*     $NetBSD: tmpfs_rename.c,v 1.10 2019/12/03 04:59:05 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_rename.c,v 1.9 2019/07/14 05:58:44 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_rename.c,v 1.10 2019/12/03 04:59:05 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -425,7 +425,7 @@
 {
        struct tmpfs_dirent *dirent, **dep_ret = de_ret;
        struct vnode *vp;
-       int error __diagused;
+       int error;
 
        (void)mp;
        KASSERT(mp != NULL);
@@ -444,11 +444,6 @@
                return error;
        KASSERT(vp != NULL);
 
-       /*
-        * XXX Once namei is fixed, we can change the genfs_rename
-        * protocol so that we have to lock vp here.
-        */
-
        *dep_ret = dirent;
        *vp_ret = vp;
        return 0;



Home | Main Index | Thread Index | Old Index