From patchwork Wed Mar 8 12:48:46 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: 9611017 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 BFC6360414 for ; Wed, 8 Mar 2017 12:58:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B47B028552 for ; Wed, 8 Mar 2017 12:58:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A860E28576; Wed, 8 Mar 2017 12:58:44 +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 59A2E28552 for ; Wed, 8 Mar 2017 12:58:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753062AbdCHM6h (ORCPT ); Wed, 8 Mar 2017 07:58:37 -0500 Received: from mout.web.de ([212.227.15.4]:62825 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000AbdCHM6e (ORCPT ); Wed, 8 Mar 2017 07:58:34 -0500 Received: from [192.168.1.2] ([92.228.144.238]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MJCEk-1ciq8Q2sLi-002q8B; Wed, 08 Mar 2017 13:48:49 +0100 Subject: [PATCH 04/26] IB/ocrdma: Delete unnecessary variable initialisations in ocrdma_mbx_get_dcbx_config() To: linux-rdma@vger.kernel.org, Devesh Sharma , Doug Ledford , Hal Rosenstock , Sean Hefty , Selvin Xavier References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <5780384b-87ef-fb39-6804-35f7eaada0c7@users.sourceforge.net> Date: Wed, 8 Mar 2017 13:48:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:mF8ZKDvdvW4AT/HWeUpUUXyUk0+l5dht3sEr/Lu5RmSlEeukqVu 66ZSflKuL/SKxHVBVv9nqRgtX6xZxA5eZIjP7CxatypSgbuHXncxLTqYVuXr9uS1xluI6Cc iRN6NW0xILOhrV3CyOg2bBbTb08sJNIZ8cg3mDlRgMmSFKNTjV7fM++eRJOWqtDYZFpAycr BN8TZk5zoEdYW7dL+y47w== X-UI-Out-Filterresults: notjunk:1; V01:K0:pW26a3t9Mjg=:O/CkKNUKcEWRDpcTQLEKQM dL38AZhHocYn76K0tOPwmSDciFSmeqzNoAow18UbmzeavG73pYNe7pWMr4P2xC2YJoqNTYUSN HZ0m38+VCSbCDm8becZhlyUyl7m5LEAYT02Q1HdyRq2fVJEdsOkuJoTcZVzXvOiuboFxjdr8c yiN4b2YAgjNBGg1RSrjo5wdya+GVuf4RtBFW6mN3YSXylinQEoB6AKZ/OUMAonHf2EU7Wy4Pb FwIbQlE5L26eP+30IkM4M/EIRIufjIlmfTgmcDltDr0l1OkwKBEOXMrgZlhB98n/LOELrzyPF 4tKU//DtGIJzgmoaWYhMBYPUCn/BLErOyRn9RtQJaQC4zQhCISkcf4ES0+sKfE6Ti1zq179AG aDPuc5TqwTphpdk86NxHAFlY4kMuKfpNNtwiDJVPsDK9SQ8mvqFus4svlJ2tKZPcFDF1AMV32 6kO9KmGU4+nozx43oTId2LPIyXDMrEWj55GffIP/CncN6m8g13WqwIe4BxHg9xz5U54GhfKqe 1yd8uRx/BIcmY4jhBvzw/DmRKdHJ+KAc8mc4OfR5zOuvA/Y8LZoozwzkgJygu4JRKKeiaD5WP /dW88ZeTJJImOZmFIfboJ1J27y0u2lqG+PQPNMEmq+FlH01pQaZ2K1esjCJbUDDLNd7FYO4Zd g3Ao+ix/5Zhuevxb2JRk4TLvNMfUPy1tZznY4ZbTmT3rOseX1l6vaqf1+oSnAn47FX9ntdEPr ja8CN1OGAfdeZ10ihcKtcyCwYfkFoDuLY/1ggp4D/gpU7Z5CfEdYqx/WgW8DrJjuqr8DGKgIy sPAdkCz 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: Tue, 7 Mar 2017 19:25:55 +0100 The local variables "req" and "rsp" will be set to appropriate pointers a bit later. Thus omit the explicit initialisations at the beginning. Signed-off-by: Markus Elfring Reviewed-by: Yuval Shaia --- drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index 85bebb887c5c..517a18e9351a 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -2895,9 +2895,8 @@ static int ocrdma_mbx_get_dcbx_config(struct ocrdma_dev *dev, u32 ptype, int status; dma_addr_t pa; struct ocrdma_mqe cmd; - - struct ocrdma_get_dcbx_cfg_req *req = NULL; - struct ocrdma_get_dcbx_cfg_rsp *rsp = NULL; + struct ocrdma_get_dcbx_cfg_req *req; + struct ocrdma_get_dcbx_cfg_rsp *rsp; struct pci_dev *pdev = dev->nic_info.pdev; struct ocrdma_mqe_sge *mqe_sge = cmd.u.nonemb_req.sge;