Fix inverted device_is_a() use logic in previous.
This commit is contained in:
parent
7ddac1f73a
commit
e9b4cd552f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: urlphy.c,v 1.13 2006/02/27 02:59:24 thorpej Exp $ */
|
||||
/* $NetBSD: urlphy.c,v 1.14 2006/02/28 22:40:15 kleink Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2001, 2002
|
||||
* Shingo WATANABE <nabe@nabechan.org>. All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.13 2006/02/27 02:59:24 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.14 2006/02/28 22:40:15 kleink Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -87,7 +87,7 @@ urlphy_match(struct device *parent, struct cfdata *match, void *aux)
|
||||
/*
|
||||
* Make sure the parent is an 'url' device.
|
||||
*/
|
||||
if (device_is_a(parent, "url") != 0)
|
||||
if (!device_is_a(parent, "url"))
|
||||
return(0);
|
||||
|
||||
return (10);
|
||||
|
Loading…
Reference in New Issue
Block a user