From patchwork Wed Feb 8 21:22:28 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: 9563459 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 1877E601C3 for ; Wed, 8 Feb 2017 21:22:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F30D284D8 for ; Wed, 8 Feb 2017 21:22:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51DCC284FF; Wed, 8 Feb 2017 21:22:43 +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 E6ED6284D8 for ; Wed, 8 Feb 2017 21:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbdBHVWl (ORCPT ); Wed, 8 Feb 2017 16:22:41 -0500 Received: from mout.web.de ([212.227.15.4]:59365 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbdBHVWk (ORCPT ); Wed, 8 Feb 2017 16:22:40 -0500 Received: from [192.168.1.2] ([77.181.90.255]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MKa0t-1cbqfy3vTr-0020Of; Wed, 08 Feb 2017 22:22:30 +0100 Subject: [PATCH 12/14] RDMA/cxgb4: Delete an unnecessary variable initialisation in 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: Date: Wed, 8 Feb 2017 22:22:28 +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:N0L9A394nULXlQ78m9+Bmj/IqyV0yQqePuQF3C3ZmkFkKY/Lvqt zLUOhp5cvZpjjGn3mDU64S7wFcZc8PaiXP+fqocaGKhEE0dLdZ9NOmgUIuY+tgGCNndLy17 R5US/wJHqEkFQ8gmDOE1Tbdiyz3xt9PlUVwbCrnamfcYPXM/SAnGemuUkIBLa+m41cdbADM kY+6NgylFBk3XMr4nGPEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:lYtylI9IvOI=:yjNJhXG6nasNvA5THYE0of /kXc0oi8ZkOG1azqQuLPcldZvTcjJJcd8TDoan/NR6ngcemQ362BDUCKs9/WuXNKAnIzVfc+f PtiLan5DweAXNF4fVggD37s7f9UeZXeYykXIcQSSBq96+VBXrFbfZTsfLTJc8XANmTR0A23rN Jvch3jjfSWIIhu7U/Ym3olsZzpP3omuTcm5NMijNeOJ9HAogioaAwuuT6h+L9dxiyNZdjYEJM 209VKM+CfoP46qzgSbUre3oADQkXSWpaQ5wtuqGdvKUtbXmJPAErxr/uuzzG4bWONBR1624fc IadbZzYXptoQLDm75ZJaMEVBYAriswwBvQPoMsGbbIazo3tlN1T2X84BkyWvXzM/XgEXONVmy sWgBY4S2lvs4nwRDG9XDZ7Ea8pM4aVW/AhP9xBzF83kOq17Trq4F1xU4fNyeRoMZ47QdI2NQ7 /hWTbnW0yQCeKem8pg4YLlDn+g7hZg9mgO5ZG41109LPaPADrRwOYyVs6TjrVnpqGE3SHa1Y7 WRQv87u2qE8NtVTb6PftIkjgAeZhgjMGbtwZwSaicSBJyaNVIindofI+nZFp5z/dFq3UL/a/L 1/aWSaIfHRj89bXolua9qYeaCMvbVDhtt0jwzaz1wgcWtJEsxKyiD/Tdd+rzhDZz2b6TGR/Rl mWDpeQLlgT6pGTIYWHA7pDjlGAY5/5xlDSq+zeqk1pUjhKNQQlVY4kcrVccgXFx3+1jjhwJMv Tta9Nka1MLNj0y9VtFSf+CJVmGiWemAzyGJbEulWHj41jXz54jYwJI+T6nK6OYI9MkCjbCgPr 1P5qTov 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 21:07:07 +0100 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning in this function. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/cxgb4/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 373d66a511a8..ac63b1f70731 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -202,7 +202,7 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, int wr_len; struct c4iw_wr_wait wr_wait; struct sk_buff *skb; - int ret = 0; + int ret; int eqsize; wq->sq.qid = c4iw_get_qpid(rdev, uctx);