From patchwork Wed Feb 8 21:12:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9563489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6E1560146 for ; Wed, 8 Feb 2017 21:30:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1C1C284BA for ; Wed, 8 Feb 2017 21:30:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D328A284F9; Wed, 8 Feb 2017 21:30:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 790B9284BA for ; Wed, 8 Feb 2017 21:30:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbdBHV3q (ORCPT ); Wed, 8 Feb 2017 16:29:46 -0500 Received: from mout.web.de ([212.227.15.3]:55009 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbdBHV3p (ORCPT ); Wed, 8 Feb 2017 16:29:45 -0500 Received: from [192.168.1.2] ([77.181.90.255]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MfTx5-1clpCO3DLf-00P70R; Wed, 08 Feb 2017 22:12:47 +0100 Subject: [PATCH 02/14] RDMA/cxgb3: Rename jump labels in cxio_create_qp() To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Sean Hefty , Steve Wise References: <0aff92fa-2891-333a-2e1e-ca309db2ec72@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <79fb817a-bc53-8d18-9b09-c78f0ed99142@users.sourceforge.net> Date: Wed, 8 Feb 2017 22:12:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <0aff92fa-2891-333a-2e1e-ca309db2ec72@users.sourceforge.net> X-Provags-ID: V03:K0:mP0awcr7sl8h84NCzkPKaRJAixrb6wZoj0RDGXLshJxlO8gcBv/ IoNTBnkrW+ghTcs7++OayEgfcGUBORsxEUDUeJ4Ep+ABTxrjeibr1qIsEBLOkO9wdHPgLhr JtliDF9L/DRd6vDDXMZxe/4VzdOutiKRwwroPdUIWiVW4FEqDwhfK/JTvf/TgFr3bI02ph0 3WiQSV4QDId3tei223dDQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:s4qyZKFWzWI=:BUWvjBK64bT1K83yfejQwK xJpS4W5KISjiDzkgp5ndiE+IxUz6NK0raEs5Xh4m3PiW7wDyR/P0lTNoaD7eiilsRJExRsQ9K WMrnomSA5hwfe2p/eI5QtHwcI28Da1A5s1TcL1J3+fQ4/mlo/gY7SWMKOuxSW4z85oLTW00zC T1PSi9G5YttEmDWGP2XE3HFzuOXjWm3ikU3Kt9qm1jBCI952X3/gXbUiN3TOtNOjNP0itT4PW e8/UhYxdB+YWEvbQKX3rA5/JqMi05cRaE8fXqtkWTCDsFxFwr/oLzeD2TgVezNVLtQu4HOIvv 7dNAy5q9oS4FuAwQnc3Hg//ROiBMWsIjZUW7jf9p6aHBhNV7E1wWYCjGOqUCMK+C9RnWxjoV0 SrZv6dCIb9M9Wmcmz1LJtbxd/phjx18p08nIvKPzS5/BKxpLznz9BHZ8215ElqRZQG8kMZlXg 8ndO4LBAB74plihAQHQ78jPCEYDaWqeM8kjaFArUAzkgPDReeGtn1taio3uX0GslSW0LzYFLv MWMIUkT/GUoDFaHrHX6dilA7rYBJIRM2KjeqgMAL8iNMu5rEudxEOjDbIOpmOkVdmq+T2vVCk UI3CY2yK2icTR08YoiWuKHBsykPs347+njFomTVXSh80+/a+tcyJLIyxpMjFV3CDvjnFVfowL FGh8LoEaBJbFLb780fx9dSoCaFL3yh0WRRn7+lZtDJmQUIIbHyGk3Ozfa8mL7UY57GARTv4eT zsNB6fbzYPUI+pFTUOLV21IL1MdDh95m3GDcgdOTYA2iY6TcV/eYKZAXbcSnADxrC+3dOkl00 2YHE48q Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 8 Feb 2017 14:28:25 +0100 Adjust jump labels according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/cxgb3/cxio_hal.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c b/drivers/infiniband/hw/cxgb3/cxio_hal.c index aeb1dfa8bfe5..113f614b07d4 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_hal.c +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c @@ -283,21 +283,21 @@ int cxio_create_qp(struct cxio_rdev *rdev_p, u32 kernel_domain, wq->rq = kcalloc(depth, sizeof(*wq->rq), GFP_KERNEL); if (!wq->rq) - goto err1; + goto put_pid; wq->rq_addr = cxio_hal_rqtpool_alloc(rdev_p, rqsize); if (!wq->rq_addr) - goto err2; + goto free_rq; wq->sq = kcalloc(depth, sizeof(*wq->sq), GFP_KERNEL); if (!wq->sq) - goto err3; + goto free_pool; wq->queue = dma_alloc_coherent(&(rdev_p->rnic_info.pdev->dev), depth * sizeof(union t3_wr), &(wq->dma_addr), GFP_KERNEL); if (!wq->queue) - goto err4; + goto free_sq; memset(wq->queue, 0, depth * sizeof(union t3_wr)); dma_unmap_addr_set(wq, mapping, wq->dma_addr); @@ -309,13 +309,13 @@ int cxio_create_qp(struct cxio_rdev *rdev_p, u32 kernel_domain, PDBG("%s qpid 0x%x doorbell 0x%p udb 0x%llx\n", __func__, wq->qpid, wq->doorbell, (unsigned long long) wq->udb); return 0; -err4: +free_sq: kfree(wq->sq); -err3: +free_pool: cxio_hal_rqtpool_free(rdev_p, wq->rq_addr, rqsize); -err2: +free_rq: kfree(wq->rq); -err1: +put_pid: put_qpid(rdev_p, wq->qpid, uctx); return -ENOMEM; }