diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 15:03:15 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 15:03:15 +0000 |
commit | 057b4402bf634907fd03590e2757e09e975d04c7 (patch) | |
tree | df1bb710ebf946f1a7c1b38464ef836fddfee71c /sys/dev/jme/if_jme.c | |
parent | 768f89e0788ab1ab7ea5df9d57082f53567007ec (diff) | |
download | src-057b4402bf634907fd03590e2757e09e975d04c7.tar.gz src-057b4402bf634907fd03590e2757e09e975d04c7.zip |
sys/dev: extend use of the howmany() macro when available.
We have a howmany() macro in the <sys/param.h> header that is
convenient to re-use as it makes things easier to read.
Notes
Notes:
svn path=/head/; revision=298646
Diffstat (limited to 'sys/dev/jme/if_jme.c')
-rw-r--r-- | sys/dev/jme/if_jme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/jme/if_jme.c b/sys/dev/jme/if_jme.c index f2567ccf0ee3..647447032b83 100644 --- a/sys/dev/jme/if_jme.c +++ b/sys/dev/jme/if_jme.c @@ -2664,7 +2664,7 @@ jme_rxintr(struct jme_softc *sc, int count) * sure whether this check is needed. */ pktlen = JME_RX_BYTES(le32toh(desc->buflen)); - if (nsegs != ((pktlen + (MCLBYTES - 1)) / MCLBYTES)) + if (nsegs != howmany(pktlen, MCLBYTES)) break; prog++; /* Received a frame. */ |