aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netfpga10g
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2014-06-26 17:03:08 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2014-06-26 17:03:08 +0000
commit7f5506101733f1c732d46584d04f3c5966640cc4 (patch)
tree2949369ac580727050526610254ec2832cb13549 /sys/dev/netfpga10g
parent68c332d3b93f58a75841bc4d44c89752c54e8620 (diff)
downloadsrc-7f5506101733f1c732d46584d04f3c5966640cc4.tar.gz
src-7f5506101733f1c732d46584d04f3c5966640cc4.zip
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
Notes
Notes: svn path=/head/; revision=267919
Diffstat (limited to 'sys/dev/netfpga10g')
-rw-r--r--sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c2
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 c152e7a06498..3a73778bc4a7 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--)