aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snc
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-04-08 14:25:47 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-04-08 14:25:47 +0000
commitfe58453891932b6e42539b9971ec882c24140153 (patch)
treea9d6dfe9fba9afa35e60736c6acc2bb7970ecd0a /sys/dev/snc
parent50d81222d871ac86e59227ddae88ca5e36b09a5c (diff)
downloadsrc-fe58453891932b6e42539b9971ec882c24140153.tar.gz
src-fe58453891932b6e42539b9971ec882c24140153.zip
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>
Notes
Notes: svn path=/head/; revision=113255
Diffstat (limited to 'sys/dev/snc')
-rw-r--r--sys/dev/snc/dp83932.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c
index f0ebae15aeeb..58966eac6803 100644
--- a/sys/dev/snc/dp83932.c
+++ b/sys/dev/snc/dp83932.c
@@ -345,9 +345,7 @@ outloop:
return;
/* We need the header for m_pkthdr.len. */
- if ((m->m_flags & M_PKTHDR) == 0)
- panic("%s: sncstart: no header mbuf",
- device_get_nameunit(sc->sc_dev));
+ M_ASSERTPKTHDR(m);
/*
* If bpf is listening on this interface, let it