aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mthca/mthca_srq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mthca/mthca_srq.c')
-rw-r--r--sys/dev/mthca/mthca_srq.c10
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);