diff options
| author | Warner Losh <imp@FreeBSD.org> | 2020-02-03 17:35:11 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2020-02-03 17:35:11 +0000 |
| commit | 58aa35d42975c298ca0adba705c042596303c9f5 (patch) | |
| tree | 2558d2b720cda9c2799970cabc266e2ce4e3a8d3 /sys/dev/mthca | |
| parent | eb24e1491f9900e922c78e53af588f22a3e9535f (diff) | |
Notes
Diffstat (limited to 'sys/dev/mthca')
| -rw-r--r-- | sys/dev/mthca/mthca_srq.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/mthca/mthca_srq.c b/sys/dev/mthca/mthca_srq.c index d22f970480c0..579c23a73654 100644 --- a/sys/dev/mthca/mthca_srq.c +++ b/sys/dev/mthca/mthca_srq.c @@ -115,16 +115,10 @@ static void mthca_arbel_init_srq_context(struct mthca_dev *dev, struct mthca_srq *srq, struct mthca_arbel_srq_context *context) { - int logsize, max; + int logsize; memset(context, 0, sizeof *context); - - /* - * Put max in a temporary variable to work around gcc bug - * triggered by ilog2() on sparc64. - */ - max = srq->max; - logsize = ilog2(max); + logsize = ilog2(srq->max); context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); context->db_index = cpu_to_be32(srq->db_index); |
