summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/sparc64/bus_machdep.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-04-08 14:25:47 +0000
committerdes <des@FreeBSD.org>2003-04-08 14:25:47 +0000
commit567ac2b268739a751df819d1aa68404f430151cb (patch)
treea9d6dfe9fba9afa35e60736c6acc2bb7970ecd0a /sys/sparc64/sparc64/bus_machdep.c
parente105056ea61ca6ae4a0e93115e8916181e93be8b (diff)
downloadFreeBSD-src-567ac2b268739a751df819d1aa68404f430151cb.zip
FreeBSD-src-567ac2b268739a751df819d1aa68404f430151cb.tar.gz
Introduce an M_ASSERTPKTHDR() macro which performs the very common task
of asserting that an mbuf has a packet header. Use it instead of hand- rolled versions wherever applicable. Submitted by: Hiten Pandya <hiten@unixdaemons.com>
Diffstat (limited to 'sys/sparc64/sparc64/bus_machdep.c')
-rw-r--r--sys/sparc64/sparc64/bus_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/bus_machdep.c b/sys/sparc64/sparc64/bus_machdep.c
index 1b97419..2b3ddc87 100644
--- a/sys/sparc64/sparc64/bus_machdep.c
+++ b/sys/sparc64/sparc64/bus_machdep.c
@@ -446,8 +446,7 @@ nexus_dmamap_load_mbuf(bus_dma_tag_t pdmat, bus_dma_tag_t ddmat,
#endif
int nsegs, error;
- KASSERT(m0->m_flags & M_PKTHDR,
- ("nexus_dmamap_load_mbuf: no packet header"));
+ M_ASSERTPKTHDR(m0);
nsegs = 0;
error = 0;
OpenPOWER on IntegriCloud