IB/mthca: Whitespace cleanups

Remove trailing whitespace and fix indentation that with spaces
instead of tabs.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
Roland Dreier
2006-02-01 13:38:24 -08:00
parent 4885bf64bc
commit 2fa5e2ebbe
9 changed files with 26 additions and 26 deletions

View File

@@ -147,7 +147,7 @@ int mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah)
switch (ah->type) { switch (ah->type) {
case MTHCA_AH_ON_HCA: case MTHCA_AH_ON_HCA:
mthca_free(&dev->av_table.alloc, mthca_free(&dev->av_table.alloc,
(ah->avdma - dev->av_table.ddr_av_base) / (ah->avdma - dev->av_table.ddr_av_base) /
MTHCA_AV_SIZE); MTHCA_AV_SIZE);
break; break;

View File

@@ -74,9 +74,9 @@ enum {
MTHCA_CMD_STAT_REG_BOUND = 0x21, MTHCA_CMD_STAT_REG_BOUND = 0x21,
/* HCA local attached memory not present: */ /* HCA local attached memory not present: */
MTHCA_CMD_STAT_LAM_NOT_PRE = 0x22, MTHCA_CMD_STAT_LAM_NOT_PRE = 0x22,
/* Bad management packet (silently discarded): */ /* Bad management packet (silently discarded): */
MTHCA_CMD_STAT_BAD_PKT = 0x30, MTHCA_CMD_STAT_BAD_PKT = 0x30,
/* More outstanding CQEs in CQ than new CQ size: */ /* More outstanding CQEs in CQ than new CQ size: */
MTHCA_CMD_STAT_BAD_SIZE = 0x40 MTHCA_CMD_STAT_BAD_SIZE = 0x40
}; };

View File

@@ -497,7 +497,7 @@ static int __devinit mthca_create_eq(struct mthca_dev *dev,
eq->dev = dev; eq->dev = dev;
eq->nent = roundup_pow_of_two(max(nent, 2)); eq->nent = roundup_pow_of_two(max(nent, 2));
npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE; npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE;
eq->page_list = kmalloc(npages * sizeof *eq->page_list, eq->page_list = kmalloc(npages * sizeof *eq->page_list,
GFP_KERNEL); GFP_KERNEL);

View File

@@ -517,7 +517,7 @@ int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd,
BUG_ON(!mr->mem.arbel.mpt); BUG_ON(!mr->mem.arbel.mpt);
} else } else
mr->mem.tavor.mpt = dev->mr_table.tavor_fmr.mpt_base + mr->mem.tavor.mpt = dev->mr_table.tavor_fmr.mpt_base +
sizeof *(mr->mem.tavor.mpt) * idx; sizeof *(mr->mem.tavor.mpt) * idx;
mr->mtt = __mthca_alloc_mtt(dev, list_len, dev->mr_table.fmr_mtt_buddy); mr->mtt = __mthca_alloc_mtt(dev, list_len, dev->mr_table.fmr_mtt_buddy);
if (IS_ERR(mr->mtt)) if (IS_ERR(mr->mtt))
@@ -779,7 +779,7 @@ int __devinit mthca_init_mr_table(struct mthca_dev *dev)
} }
dev->mr_table.tavor_fmr.mpt_base = dev->mr_table.tavor_fmr.mpt_base =
ioremap(dev->mr_table.mpt_base, ioremap(dev->mr_table.mpt_base,
(1 << i) * sizeof (struct mthca_mpt_entry)); (1 << i) * sizeof (struct mthca_mpt_entry));
if (!dev->mr_table.tavor_fmr.mpt_base) { if (!dev->mr_table.tavor_fmr.mpt_base) {
@@ -807,7 +807,7 @@ int __devinit mthca_init_mr_table(struct mthca_dev *dev)
goto err_reserve_fmr; goto err_reserve_fmr;
dev->mr_table.fmr_mtt_buddy = dev->mr_table.fmr_mtt_buddy =
&dev->mr_table.tavor_fmr.mtt_buddy; &dev->mr_table.tavor_fmr.mtt_buddy;
} else } else
dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy; dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy;

View File

@@ -597,7 +597,7 @@ int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask)
} }
if (attr_mask & IB_QP_STATE) { if (attr_mask & IB_QP_STATE) {
if (attr->qp_state < 0 || attr->qp_state > IB_QPS_ERR) if (attr->qp_state < 0 || attr->qp_state > IB_QPS_ERR)
return -EINVAL; return -EINVAL;
new_state = attr->qp_state; new_state = attr->qp_state;
} else } else
@@ -1078,10 +1078,10 @@ static int mthca_map_memfree(struct mthca_dev *dev,
if (ret) if (ret)
goto err_qpc; goto err_qpc;
ret = mthca_table_get(dev, dev->qp_table.rdb_table, ret = mthca_table_get(dev, dev->qp_table.rdb_table,
qp->qpn << dev->qp_table.rdb_shift); qp->qpn << dev->qp_table.rdb_shift);
if (ret) if (ret)
goto err_eqpc; goto err_eqpc;
} }
@@ -2115,7 +2115,7 @@ int mthca_arbel_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr,
int i; int i;
void *wqe; void *wqe;
spin_lock_irqsave(&qp->rq.lock, flags); spin_lock_irqsave(&qp->rq.lock, flags);
/* XXX check that state is OK to post receive */ /* XXX check that state is OK to post receive */