From patchwork Sat Apr 22 14:40:19 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: 9694405 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 2F900601E9 for ; Sat, 22 Apr 2017 14:40:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22DF728174 for ; Sat, 22 Apr 2017 14:40:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 161FB28335; Sat, 22 Apr 2017 14:40:41 +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 9091628174 for ; Sat, 22 Apr 2017 14:40:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424483AbdDVOkj (ORCPT ); Sat, 22 Apr 2017 10:40:39 -0400 Received: from mout.web.de ([212.227.15.14]:51611 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424360AbdDVOki (ORCPT ); Sat, 22 Apr 2017 10:40:38 -0400 Received: from [192.168.1.2] ([77.181.100.232]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MeSLv-1cdxGr25gl-00Q8nA; Sat, 22 Apr 2017 16:40:22 +0200 Subject: [PATCH v2 04/12] IB/ocrdma: Delete unnecessary variable initialisations in ocrdma_mbx_get_dcbx_config() From: SF Markus Elfring To: Devesh Sharma , Doug Ledford , Hal Rosenstock , Sean Hefty , Selvin Xavier , Yuval Shaia , linux-rdma@vger.kernel.org Cc: LKML , kernel-janitors@vger.kernel.org References: <1492720999.3041.18.camel@redhat.com> <86425035-7da8-d2b1-8544-d4f7540d50c6@users.sourceforge.net> Message-ID: <518c3609-4539-9a9a-b441-d3f3538984c0@users.sourceforge.net> Date: Sat, 22 Apr 2017 16:40:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <86425035-7da8-d2b1-8544-d4f7540d50c6@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:e/CCSz6W3HdXLfz7nOrHWNCtJ33YwCN5zFKjlwN+7Le93NEaGLH 3Gr32LM0ve2mysSUaIQGsY+/jzJ9BeDvUIYlhTsf/X0ORkAN1IqzgSbPK7fH21igJkvcgEF HiEcCtDLuxHZQAbzBB8FKjd/v2pvoxk2Sg1KDtkJzTAIcsaorGjuxPXfHLL4FQuK9xejAXV BGEzak7IFeJg2XJ7mcx+Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:VmHeUrZmJ24=:mSB5PT2SRJm5G85kgpeNVq SglgskWX4WUnZ2TeKCHkbeB/BaaARbDPPbdGDfAhlEKhARjhEc47MauVIeWk71FqI28oKobol TByPio/PAK5NhTGwy9A99EQ6eT1rwDAjRZxJ1WKmx8M4NRKqopVZ0dx6vSLKThzSB5W00BsXU plRkyVSpAd+jAPlq1fzMPF/UQVubrTYesgE1+XKatMcfjKRPIJ4plge8KLQiiFlRqEfviHdvw dVZRHlwM6k2RxvgAF3LxxkpVdnqHJOmOJNaQEWxtYdsC0OJNVzMoKyMgEZ0gAonZCsRFvhVwe NeWU8QIzimyZDlWKVjhHsSGNx12MFlg7lU/lYnrpwKz3f36mt7qD7wNuD9KzrqH2TKet6pGNg LbSK5y01NrTEHBuzzHSatwBb3WC5jOrKF49u6mXiYNfyvKDJirjStDMYjrOqZxesUsYX/Arai Nl0LaSXZzxHWiznZhF6dBu1hA4uCHLaHWZi2sH4kDIMwHdEeuCRZPwrJixb2Vc1+VzjqIL+La 0tLB+oN7yKpa6vMufj7i6LVo5YQFHlCDWEdu2sjgHGQsnvWhaa/OYU6dcMfGL0/g24BS6oSAw lKFiNWOeY7Y14QXsZW3PkXiTtQ0IYdb5mtosw89RyqTUKdVrto7moTKOBk4rzaUvyIjM0Rev7 mq9x3jSru191sl0YrOvAqDMuD0mcZayHWIPro5h5cf1dMPP7HkXUSZrEsU3Q/cM0Ysr7bjUXm ILqVHLVGM/50LEwP+96FCSYDjI89BSrsPPolsR/TZzOCu+hQXRWThrU7D/RAVjVMZiuB0WC2g JBClcMO 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, 22 Apr 2017 13:38:33 +0200 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 7e58a74102f6..aa32bc9f323d 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -2894,9 +2894,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;