From patchwork Sat Jan 27 18:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10187597 X-Patchwork-Delegate: jgg@ziepe.ca 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 01AEC602C8 for ; Sat, 27 Jan 2018 18:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E080D2000A for ; Sat, 27 Jan 2018 18:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D128728C95; Sat, 27 Jan 2018 18:20: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 75C432000A for ; Sat, 27 Jan 2018 18:20:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753193AbeA0SUZ (ORCPT ); Sat, 27 Jan 2018 13:20:25 -0500 Received: from mout.web.de ([217.72.192.78]:56773 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836AbeA0SUY (ORCPT ); Sat, 27 Jan 2018 13:20:24 -0500 Received: from [192.168.1.2] ([78.49.117.84]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lrs70-1elO810yb8-013bap; Sat, 27 Jan 2018 19:20:07 +0100 Subject: [PATCH 2/3] IB/iser: Delete an unnecessary variable initialisation in iser_send_data_out() From: SF Markus Elfring To: linux-rdma@vger.kernel.org, Doug Ledford , Jason Gunthorpe , Or Gerlitz , Roi Dayan , Sagi Grimberg Cc: LKML , kernel-janitors@vger.kernel.org References: <00e8b16f-c856-8999-fe93-2724a2f6a56e@users.sourceforge.net> Message-ID: Date: Sat, 27 Jan 2018 19:20:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <00e8b16f-c856-8999-fe93-2724a2f6a56e@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:q60OwaDJvPe43oDKlhRTgVxbdxJoa6VjJEBmtKm3K8deuCHDdxh dNzJ6w0u5KdUYF9q9kAzCYFiHtik23cw63v4BtWCf3Msdr1WTmrPBXDmfVVE3+3JQEPSf8P DXgb28kBqMRAGNlcGpRwrsqXoxNNAjvOJR/10S/uJJKl00HWPjchszFwqUAKgWD+O5+fg4I FeYdjP1p+oh82+gNEuVwA== X-UI-Out-Filterresults: notjunk:1; V01:K0:9cVTKq6HBto=:3Cc60/CYauZIUIFki2r4LQ +esLfeLxSUE6/2fUHHX+XOfAikslLKBrJx1IpyTqIcdi/q03MzU6DsczAPC/ousm5eH8ZueA1 4G5YNULn43PZMmylCxPDI2zjJBNwR7DOMiHPM9poqr1M9hnuW+L1rdX593FKa2ScPprKDH+Qa YgdVT3nKYXI2zjjX402R9ftyfAgFA4a2UyKCRlTFuI4vIVcI+ZnSdWic8DtdeyKjJ7H4P7o1F 5pet8TxkxJxrGb0dCzvyVoLUzbTC4nHe4j8j3gKWgs29e7+18Lb8kbG6/CcfMlO+GvUWQ4UF7 L/eGtyeNnHQ7m3k9E+8iO7fcbxII73Pt2yuXTCCLhP2WqXXhYcdOZu71IYzxY3x6Dp6jW8qyU +0gxkYc0fjXPXCosxQG97o1SBOkw7h+x3zEO6rrN6QxWQgoZlYmhjb7ETyMl8cazIyXn41L4w XU45LTiqpYFY4GrHN4nK9AIs4iIM8GcbZv6FX4eImUoepI4uczx+DnRBbJ5XFnyUjMYBUM6+f cvbgGxqZO85XXcwfnHsgQGHAFo8l7jrhfq6ZUsWO/EjEgx1YCFZuphDe0dMVvgNKrGIcREYBL XfzhFnyYAgdGjyc+aaRs1NAv6T884rYDU2sEi77fAIogiAYFfRnI+gDyqMZNwCBNqzt0rxz8D xzjSoiCZqLvlyHldkzZgHlGezWSCSTfBPRn4XdaYCixGn/l5glERREwEd5GQF5B2go9omppFZ AZl/ZUSiyX9H6AL3mELHBfAmnYWWOo9/7Lm1Kvrx0CHf+h5SK0D/2UaW1aCP6oFhpoCF/XNyT wj9e17kVr+nIXbYsd22mOqFSr7O4vMrpV2M7OLcUXqAJ5ota8I= 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: Sat, 27 Jan 2018 17:55:13 +0100 The variable "tx_desc" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/infiniband/ulp/iser/iser_initiator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c index 3ae2571ba5b4..1425c4957a04 100644 --- a/drivers/infiniband/ulp/iser/iser_initiator.c +++ b/drivers/infiniband/ulp/iser/iser_initiator.c @@ -436,7 +436,7 @@ int iser_send_data_out(struct iscsi_conn *conn, { struct iser_conn *iser_conn = conn->dd_data; struct iscsi_iser_task *iser_task = task->dd_data; - struct iser_tx_desc *tx_desc = NULL; + struct iser_tx_desc *tx_desc; struct iser_mem_reg *mem_reg; unsigned long buf_offset; unsigned long data_seg_len;