avoid yet another GCC warning only exposed at -O3.
This commit is contained in:
parent
d8a42ed9c7
commit
7a4c53719e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_subr.c,v 1.273 2006/10/20 20:29:52 reinoud Exp $ */
|
||||
/* $NetBSD: vfs_subr.c,v 1.274 2006/10/22 00:48:14 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2004, 2005 The NetBSD Foundation, Inc.
|
||||
|
@ -80,7 +80,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.273 2006/10/20 20:29:52 reinoud Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.274 2006/10/22 00:48:14 mrg Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_ddb.h"
|
||||
|
@ -1800,6 +1800,8 @@ vdevgone(int maj, int minl, int minh, enum vtype type)
|
|||
struct vnode *vp;
|
||||
int mn;
|
||||
|
||||
vp = NULL; /* XXX gcc */
|
||||
|
||||
for (mn = minl; mn <= minh; mn++)
|
||||
if (vfinddev(makedev(maj, mn), type, &vp))
|
||||
VOP_REVOKE(vp, REVOKEALL);
|
||||
|
|
Loading…
Reference in New Issue