diff options
author | mux <mux@FreeBSD.org> | 2003-04-07 14:53:30 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-04-07 14:53:30 +0000 |
commit | e4566c3ff294781ebcec0abffe3f38b3a28b4013 (patch) | |
tree | fcfbfd9f918e8edc9417ee0942717373ecef7eb0 | |
parent | 204303829b2377e9906ca6134117bc854c094c8e (diff) | |
download | FreeBSD-src-e4566c3ff294781ebcec0abffe3f38b3a28b4013.zip FreeBSD-src-e4566c3ff294781ebcec0abffe3f38b3a28b4013.tar.gz |
Remove an erroneous htole16(). The byte_count field in the
struct fxp_cb_config is a 6-bit field, not a 16-bit integer
as in struct fxp_cb_tx.
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 7ca98a7..b4d07b6 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -1928,7 +1928,7 @@ fxp_init(void *xsc) cbp->cb_command = htole16(FXP_CB_COMMAND_CONFIG | FXP_CB_COMMAND_EL); cbp->link_addr = 0xffffffff; /* (no) next command */ - cbp->byte_count = htole16(sc->flags & FXP_FLAG_EXT_RFA ? 32 : 22); + cbp->byte_count = sc->flags & FXP_FLAG_EXT_RFA ? 32 : 22; cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */ cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */ cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */ |