From patchwork Sat Jul 23 11:00:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9244591 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 6409360459 for ; Sat, 23 Jul 2016 11:00:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5353F280D0 for ; Sat, 23 Jul 2016 11:00:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45276281B7; Sat, 23 Jul 2016 11:00:45 +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 DA8B6280D0 for ; Sat, 23 Jul 2016 11:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751124AbcGWLAi (ORCPT ); Sat, 23 Jul 2016 07:00:38 -0400 Received: from mout.web.de ([212.227.15.3]:56400 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbcGWLAg (ORCPT ); Sat, 23 Jul 2016 07:00:36 -0400 Received: from [192.168.1.2] ([78.53.49.29]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MVcrf-1bpM5G2JLj-00Z0Kb; Sat, 23 Jul 2016 13:00:25 +0200 Subject: [PATCH 3/3] IB/mthca: Delete unnecessary variable initialisations in mthca_reset() To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Sean Hefty References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <546CE09B.9090101@users.sourceforge.net> <55b7a06e-6bb4-f1bb-e4dd-7812648ecf34@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <3700e687-f8e5-edd9-2f93-54839673bb14@users.sourceforge.net> Date: Sat, 23 Jul 2016 13:00:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <55b7a06e-6bb4-f1bb-e4dd-7812648ecf34@users.sourceforge.net> X-Provags-ID: V03:K0:A2Fp7W/uxGw8+HBMfoTcvGNyd3U3xVbjxDrmuVBo1vIC/Ee0SAt /Z3g+0H5Jhj1XVrDb5x6iH5JYsRx/eFLEzX5lzEvCDjofue/YFL4XAQh7ROdIEHO00tpvVP dwqMyh0KYVVRm2lBZsatrEQgdTaMEofxpI6hAHLYWmOxo7UK6VheyVdwVs+autJT9boIjvd TJoeEY329quakz9JfgE6w== X-UI-Out-Filterresults: notjunk:1; V01:K0:GqjYefruQsM=:ygj9KsGN+W09yQ9gTAtkX0 ilVkLQvKWHCzjhgwpyuDBqC59Ghgedwf82J21R1qMVt5NH8GSKjLp81UJvmI4ZCfji2V7p2nf 2uu7SfVk0KJI6/9pqYSHFRafU4jJOJ58JOOvf2XTBpEm3Wudl3OBelloQHurkjLJ5rrkHfgnY iQxVme6VwXFmt6ar5k7Wkfkt231e8JzDzRLgqoQIzf1T4XIpuH/yaCFQNwJQZu1YDThx/xHW+ TaksEJ9DGIPV5zi9Tj+PUHOfo33XXEc6d5K6bjMTBIbBifAs1oSl8jbpmrd6NvIQ1/KhXwf3K QPowt56y53yfphw62zRIH87lRCpNHxNojuMo5toihXMLznanCUq3VmZO5W7oxDxQ//v0a/D7H IG9EnFgdFHdYkbMK5iI5lrin9Hk6XmM28Jl/mmaBb85mUo0368z0JGYf32qb9Fprv24gymJwm I9GbR1ZhMkBN839lUwW7KFXLf9z7p30FMD0dcujbCfPSQJFT+DS+l/Es7Tp/HGRe0BV4JIyzz GjeK25iIQUq7PfO6SKxqbeRH4c6q9H7k2wG9dEh2QHKnXfs/Z0G8DrsPBOH81z6o/JlJwWix+ OJlO17zpiCJDvnaG95Fy+mri8S/XaZ2hNGwCdB9CGBLSGs9qyPpQ9URFrswXorWPpkpiDC1uY Z+D3J48ewpHLXyAfg2kyYY6g2M4aaiBdp9DQSdGTV2o/YffID0rbGhVQX4/GSWd1gtQw+Y39O kTAcBxaqgDFkt0PSNrKaBmoOLV1PRFQhEo2wq8/Fla5JKjecTR1f7QvwgN/kPTgE2Ky3ESzQ7 is7EhDI 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, 23 Jul 2016 11:54:06 +0200 Three local variables will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/mthca/mthca_reset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mthca/mthca_reset.c b/drivers/infiniband/hw/mthca/mthca_reset.c index 6727af2..0a458c6 100644 --- a/drivers/infiniband/hw/mthca/mthca_reset.c +++ b/drivers/infiniband/hw/mthca/mthca_reset.c @@ -42,12 +42,12 @@ int mthca_reset(struct mthca_dev *mdev) { int i; int err = 0; - u32 *hca_header = NULL; + u32 *hca_header; u32 *bridge_header = NULL; struct pci_dev *bridge = NULL; int bridge_pcix_cap = 0; - int hca_pcie_cap = 0; - int hca_pcix_cap = 0; + int hca_pcie_cap; + int hca_pcix_cap; u16 devctl; u16 linkctl;