Commit f34b77ec authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Greg Kroah-Hartman

staging: rdma: amso1100: remove label indentation

Remove label indentation to follow kernel coding style
Signed-off-by: default avatarIoana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2136c81f
......@@ -675,11 +675,11 @@ static int c2_up(struct net_device *netdev)
return 0;
bail1:
bail1:
c2_rx_clean(c2_port);
kfree(c2_port->rx_ring.start);
bail0:
bail0:
pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem,
c2_port->dma);
......
......@@ -374,13 +374,13 @@ int c2_init_cq(struct c2_dev *c2dev, int entries,
return 0;
bail3:
bail3:
vq_repbuf_free(c2dev, reply);
bail2:
bail2:
vq_req_free(c2dev, vq_req);
bail1:
bail1:
c2_free_cq_buf(c2dev, &cq->mq);
bail0:
bail0:
c2_free_mqsp(cq->mq.shared);
return err;
......@@ -429,9 +429,9 @@ void c2_free_cq(struct c2_dev *c2dev, struct c2_cq *cq)
reply = (struct c2wr_cq_destroy_rep *) (unsigned long) (vq_req->reply_msg);
if (reply)
vq_repbuf_free(c2dev, reply);
bail1:
bail1:
vq_req_free(c2dev, vq_req);
bail0:
bail0:
if (cq->is_kernel) {
c2_free_cq_buf(c2dev, &cq->mq);
}
......
......@@ -164,7 +164,7 @@ send_pbl_messages(struct c2_dev *c2dev, __be32 stag_index,
err = c2_errno(reply);
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
kfree(wr);
return err;
}
......@@ -304,11 +304,11 @@ c2_nsmr_register_phys_kern(struct c2_dev *c2dev, u64 *addr_list,
return err;
bail2:
bail2:
vq_repbuf_free(c2dev, reply);
bail1:
bail1:
kfree(wr);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -371,7 +371,7 @@ int c2_stag_dealloc(struct c2_dev *c2dev, u32 stag_index)
err = c2_errno(reply);
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -240,7 +240,7 @@ int c2_qp_modify(struct c2_dev *c2dev, struct c2_qp *qp,
spin_unlock_irqrestore(&qp->lock, flags);
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
pr_debug("%s:%d qp=%p, cur_state=%s\n",
......@@ -294,7 +294,7 @@ int c2_qp_set_read_limits(struct c2_dev *c2dev, struct c2_qp *qp,
err = c2_errno(reply);
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -373,7 +373,7 @@ static int destroy_qp(struct c2_dev *c2dev, struct c2_qp *qp)
spin_unlock_irqrestore(&qp->lock, flags);
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -554,19 +554,19 @@ int c2_alloc_qp(struct c2_dev *c2dev,
return 0;
bail6:
bail6:
iounmap(qp->sq_mq.peer);
bail5:
bail5:
destroy_qp(c2dev, qp);
bail4:
bail4:
vq_repbuf_free(c2dev, reply);
bail3:
bail3:
vq_req_free(c2dev, vq_req);
bail2:
bail2:
c2_free_mqsp(qp->rq_mq.shared);
bail1:
bail1:
c2_free_mqsp(qp->sq_mq.shared);
bail0:
bail0:
c2_free_qpn(c2dev, qp->qpn);
return err;
}
......
......@@ -261,9 +261,9 @@ int c2_add_addr(struct c2_dev *c2dev, __be32 inaddr, __be32 inmask)
err = c2_errno(reply);
vq_repbuf_free(c2dev, reply);
bail1:
bail1:
kfree(wr);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -323,9 +323,9 @@ int c2_del_addr(struct c2_dev *c2dev, __be32 inaddr, __be32 inmask)
err = c2_errno(reply);
vq_repbuf_free(c2dev, reply);
bail1:
bail1:
kfree(wr);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -378,9 +378,9 @@ static int c2_rnic_open(struct c2_dev *c2dev)
c2dev->adapter_handle = reply->rnic_handle;
bail1:
bail1:
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -430,9 +430,9 @@ static int c2_rnic_close(struct c2_dev *c2dev)
c2dev->adapter_handle = 0;
bail1:
bail1:
vq_repbuf_free(c2dev, reply);
bail0:
bail0:
vq_req_free(c2dev, vq_req);
return err;
}
......@@ -589,21 +589,21 @@ int c2_rnic_init(struct c2_dev *c2dev)
c2_init_qp_table(c2dev);
return 0;
bail5:
bail5:
c2_rnic_close(c2dev);
bail4:
bail4:
vq_term(c2dev);
bail3:
bail3:
dma_free_coherent(&c2dev->pcidev->dev,
c2dev->aeq.q_size * c2dev->aeq.msg_size,
q2_pages, dma_unmap_addr(&c2dev->aeq, mapping));
bail2:
bail2:
dma_free_coherent(&c2dev->pcidev->dev,
c2dev->rep_vq.q_size * c2dev->rep_vq.msg_size,
q1_pages, dma_unmap_addr(&c2dev->rep_vq, mapping));
bail1:
bail1:
c2_free_mqsp_pool(c2dev, c2dev->kern_mqsp_pool);
bail0:
bail0:
vfree(c2dev->qptr_array);
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment