summaryrefslogtreecommitdiffstats
path: root/sys/dev/oce/oce_mbox.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-08-07 21:56:46 +0000
committerimp <imp@FreeBSD.org>2014-08-07 21:56:46 +0000
commitcd2dcdc3d6e03032497baff3cc5a8d1c6e1f8f3a (patch)
tree08b5b85954ac14862f6003f0bcb8494995224390 /sys/dev/oce/oce_mbox.c
parent1cf5db2416d3e5249f74f5f5c3316f9106855dbe (diff)
downloadFreeBSD-src-cd2dcdc3d6e03032497baff3cc5a8d1c6e1f8f3a.zip
FreeBSD-src-cd2dcdc3d6e03032497baff3cc5a8d1c6e1f8f3a.tar.gz
Cast queue length because q_len isn't really an enum in the same sense
that clang wants it to be (a value that can only have values inside the enum range), but rather an unsigned count of bytes.
Diffstat (limited to 'sys/dev/oce/oce_mbox.c')
-rw-r--r--sys/dev/oce/oce_mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/oce/oce_mbox.c b/sys/dev/oce/oce_mbox.c
index f3f7723..d3dab2f 100644
--- a/sys/dev/oce/oce_mbox.c
+++ b/sys/dev/oce/oce_mbox.c
@@ -1876,7 +1876,7 @@ oce_mbox_cq_create(struct oce_cq *cq, uint32_t ncoalesce, uint32_t is_eventable)
ctx->v2.armed = 0;
ctx->v2.eq_id = cq->eq->eq_id;
if (ctx->v2.count == 3) {
- if (cq->cq_cfg.q_len > (4*1024)-1)
+ if ((u_int)cq->cq_cfg.q_len > (4*1024)-1)
ctx->v2.cqe_count = (4*1024)-1;
else
ctx->v2.cqe_count = cq->cq_cfg.q_len;
OpenPOWER on IntegriCloud