Omit obsolete comment and needless __diagused marker.
This commit is contained in:
parent
8c86dbd8ba
commit
abf4116ae5
@ -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, struct vnode *dvp,
|
||||
{
|
||||
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, struct vnode *dvp,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user