diff options
author | arybchik <arybchik@FreeBSD.org> | 2016-05-27 11:49:05 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2016-05-27 11:49:05 +0000 |
commit | b1a5ea4475372ed4bd81f7f26110a33fb544845c (patch) | |
tree | 29a70d2351a66ae21da28f06583d5c5e8fb55075 | |
parent | a9579a78e27b087027b6fadaf10ac01ed1cbf1d0 (diff) | |
download | FreeBSD-src-b1a5ea4475372ed4bd81f7f26110a33fb544845c.zip FreeBSD-src-b1a5ea4475372ed4bd81f7f26110a33fb544845c.tar.gz |
sfxge(4): cope with always true unsigned comparison with 0 to make lint happier
Found by lint on illumos.
Submitted by: Garrett D'Amore <garrett at damore.org>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
-rw-r--r-- | sys/dev/sfxge/common/ef10_rx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/sfxge/common/ef10_rx.c b/sys/dev/sfxge/common/ef10_rx.c index d190109..3bbee26 100644 --- a/sys/dev/sfxge/common/ef10_rx.c +++ b/sys/dev/sfxge/common/ef10_rx.c @@ -50,14 +50,15 @@ efx_mcdi_init_rxq( { efx_mcdi_req_t req; uint8_t payload[ - MAX(MC_CMD_INIT_RXQ_IN_LEN(EFX_RXQ_NBUFS(EFX_RXQ_MAXNDESCS)), - MC_CMD_INIT_RXQ_OUT_LEN)]; + MC_CMD_INIT_RXQ_IN_LEN(EFX_RXQ_NBUFS(EFX_RXQ_MAXNDESCS))]; int npages = EFX_RXQ_NBUFS(size); int i; efx_qword_t *dma_addr; uint64_t addr; efx_rc_t rc; + /* If this changes, then the payload size might need to change. */ + EFSYS_ASSERT3U(MC_CMD_INIT_RXQ_OUT_LEN, ==, 0); EFSYS_ASSERT3U(size, <=, EFX_RXQ_MAXNDESCS); (void) memset(payload, 0, sizeof (payload)); |