#if 0 some diagnostic code that compares two bus_space_tag_t's.
MI code should not compare an opaque type such as bus_space_tag_t!
This commit is contained in:
parent
8b0029011b
commit
4d3f510cc9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cy82c693.c,v 1.6 2008/04/28 20:23:54 martin Exp $ */
|
||||
/* $NetBSD: cy82c693.c,v 1.7 2010/03/22 22:36:07 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.6 2008/04/28 20:23:54 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.7 2010/03/22 22:36:07 dyoung Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_lockdebug.h"
|
||||
|
@ -79,8 +79,10 @@ cy82c693_init(bus_space_tag_t iot)
|
|||
|
||||
if (cyhc_initialized) {
|
||||
CYHC_UNLOCK(s);
|
||||
#if 0 /* XXX Comparing bus_space_tag_t is a no-no! */
|
||||
if (iot != cyhc_handle.cyhc_iot)
|
||||
panic("cy82c693_init");
|
||||
#endif
|
||||
return (&cyhc_handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue