diff --git a/sys/dev/mthca/mthca_cmd.c b/sys/dev/mthca/mthca_cmd.c index e75620aec09..adb76bc9edb 100644 --- a/sys/dev/mthca/mthca_cmd.c +++ b/sys/dev/mthca/mthca_cmd.c @@ -301,7 +301,6 @@ static int mthca_cmd_post(struct mthca_dev *dev, return err; } - static int mthca_status_to_errno(u8 status) { static const int trans_table[] = { @@ -332,7 +331,6 @@ static int mthca_status_to_errno(u8 status) return trans_table[status]; } - static int mthca_cmd_poll(struct mthca_dev *dev, u64 in_param, u64 *out_param, diff --git a/sys/dev/mthca/mthca_mad.c b/sys/dev/mthca/mthca_mad.c index 9139405c481..fe4014ca8a2 100644 --- a/sys/dev/mthca/mthca_mad.c +++ b/sys/dev/mthca/mthca_mad.c @@ -311,7 +311,6 @@ int mthca_create_agents(struct mthca_dev *dev) dev->send_agent[p][q] = agent; } - for (p = 1; p <= dev->limits.num_ports; ++p) { ret = mthca_update_rate(dev, p); if (ret) { diff --git a/sys/dev/mthca/mthca_mr.c b/sys/dev/mthca/mthca_mr.c index ed9a989e501..c787ea44458 100644 --- a/sys/dev/mthca/mthca_mr.c +++ b/sys/dev/mthca/mthca_mr.c @@ -713,7 +713,6 @@ static inline int mthca_check_fmr(struct mthca_fmr *fmr, u64 *page_list, return 0; } - int mthca_tavor_map_phys_fmr(struct ib_fmr *ibfmr, u64 *page_list, int list_len, u64 iova) { @@ -869,7 +868,6 @@ int mthca_init_mr_table(struct mthca_dev *dev) if (!mthca_is_memfree(dev) && (dev->mthca_flags & MTHCA_FLAG_FMR)) { - addr = pci_resource_start(dev->pdev, 4) + ((pci_resource_len(dev->pdev, 4) - 1) & dev->mr_table.mpt_base); diff --git a/sys/dev/mthca/mthca_qp.c b/sys/dev/mthca/mthca_qp.c index 96e5fb91fb4..33d61d29bbe 100644 --- a/sys/dev/mthca/mthca_qp.c +++ b/sys/dev/mthca/mthca_qp.c @@ -1086,7 +1086,6 @@ static int mthca_map_memfree(struct mthca_dev *dev, qp->qpn << dev->qp_table.rdb_shift); if (ret) goto err_eqpc; - } return 0; @@ -1218,7 +1217,6 @@ static int mthca_alloc_qp_common(struct mthca_dev *dev, next->nda_op = htonl((((i + 1) % qp->rq.max) << qp->rq.wqe_shift) | 1); } - } qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);