diff options
author | bz <bz@FreeBSD.org> | 2014-06-26 17:03:08 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-06-26 17:03:08 +0000 |
commit | ff6369372ef51e2d2deec7857f8323856c9e9759 (patch) | |
tree | 2949369ac580727050526610254ec2832cb13549 /sys/dev | |
parent | 2fe5a9ed9901a389d99d70eed83ef7da9036c91e (diff) | |
download | FreeBSD-src-ff6369372ef51e2d2deec7857f8323856c9e9759.zip FreeBSD-src-ff6369372ef51e2d2deec7857f8323856c9e9759.tar.gz |
Rather than using a constant use sizeof(val) allowing for the length
to automatically change as we switch between 32/64bit.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c index c152e7a..3a73778 100644 --- a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c +++ b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c @@ -229,7 +229,7 @@ nf10bmac_tx_locked(struct nf10bmac_softc *sc, struct mbuf *m) int sl; if (l == (ml - 1)) - len = 4; + len = sizeof(val); cl = len; for (s = 0, sl = len; sl > 0; sl--) |