Module Name:    src
Committed By:   riastradh
Date:           Tue Dec  3 04:59:05 UTC 2019

Modified Files:
        src/sys/fs/tmpfs: tmpfs_rename.c

Log Message:
Omit obsolete comment and needless __diagused marker.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/fs/tmpfs/tmpfs_rename.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/tmpfs/tmpfs_rename.c
diff -u src/sys/fs/tmpfs/tmpfs_rename.c:1.9 src/sys/fs/tmpfs/tmpfs_rename.c:1.10
--- src/sys/fs/tmpfs/tmpfs_rename.c:1.9	Sun Jul 14 05:58:44 2019
+++ src/sys/fs/tmpfs/tmpfs_rename.c	Tue Dec  3 04:59:05 2019
@@ -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 @@ tmpfs_gro_lookup(struct mount *mp, struc
 {
 	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 @@ tmpfs_gro_lookup(struct mount *mp, struc
 		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;

Reply via email to