Fix botch in #ifdef DIAGNOSTIC.

This commit is contained in:
tsutsui 2007-02-03 05:20:31 +00:00
parent b19c5b0bc7
commit 3c39b23802
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dvma.c,v 1.33 2007/02/03 05:13:58 tsutsui Exp $ */ /* $NetBSD: dvma.c,v 1.34 2007/02/03 05:20:31 tsutsui Exp $ */
/*- /*-
* Copyright (c) 1996 The NetBSD Foundation, Inc. * Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dvma.c,v 1.33 2007/02/03 05:13:58 tsutsui Exp $"); __KERNEL_RCSID(0, "$NetBSD: dvma.c,v 1.34 2007/02/03 05:20:31 tsutsui Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -379,7 +379,7 @@ _bus_dmamap_unload(bus_dma_tag_t t, bus_dmamap_t map)
#ifdef DIAGNOSTIC #ifdef DIAGNOSTIC
if (map->dm_nsegs != 1) if (map->dm_nsegs != 1)
panic("%s: invalid nsegs = %d", __func__, nsegs); panic("%s: invalid nsegs = %d", __func__, map->dm_nsegs);
#endif #endif
segs = map->dm_segs; segs = map->dm_segs;