From patchwork Sat Feb 18 21:06:51 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: 9581269 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 52A0C604A4 for ; Sat, 18 Feb 2017 21:07:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41A4C283F3 for ; Sat, 18 Feb 2017 21:07:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33F1528499; Sat, 18 Feb 2017 21:07:07 +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 E4962283F3 for ; Sat, 18 Feb 2017 21:07:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754459AbdBRVHF (ORCPT ); Sat, 18 Feb 2017 16:07:05 -0500 Received: from mout.web.de ([212.227.15.4]:55017 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754411AbdBRVHE (ORCPT ); Sat, 18 Feb 2017 16:07:04 -0500 Received: from [192.168.1.2] ([77.181.107.93]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MT8sw-1cpfmU1AcI-00SAx4; Sat, 18 Feb 2017 22:06:52 +0100 Subject: [PATCH 18/29] IB/mlx4: Delete an unnecessary variable initialisation in mlx4_ib_add() To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Leon Romanovsky , Matan Barak , Sean Hefty , Yishai Hadas References: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <69869c49-bb77-3b1e-f704-4aede0fff936@users.sourceforge.net> Date: Sat, 18 Feb 2017 22:06:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> X-Provags-ID: V03:K0:qNV7P1qt5PNGJ7NlN/OkrTx9SoulEjtAsO1tYAU2qUIDAL6FuhY /Ic0rdFjwe7Ha8hzEVIUqSeBsiD0KgE0XB8LlPUscAKzagW2d3DaZZCt1aNjm0sQbjxOK6H XVl6zFolwOJZ9l6TsuViGVleKBdSnWCgCxaBihWOO65hfitR/mhaVxqE8h16z8Ym7zFA6Hb C8t1whLg4iRggO5if3lug== X-UI-Out-Filterresults: notjunk:1; V01:K0:nm7bS5ZE+Jg=:JTPVo1NJY9Qd8ipie63vhr 2WJnxloKjY/583eNbQCP/9Lk0yJDhDyWx8mtTp0WjbMIpByxuuuvBi+sz2Iq3ig6wPiGKgWMZ 68oOWxhGucNLg36+jlIIuSXo6o492bZgvOebM0p7DqJBJ537MkcUaDMl2qQfSGfmW21fKzzoq cQtiNa7GuKHILvTiLUn83QKYR6r6QC3bvz21XMCi21/+BUOnUrIBo6Woo28LX88oVF9CdNXKa /GfZqHHBOnvwShWnjzP4Cd+8Q4QIkvVZmI8udQ7ayMFvwSmH10r5LkjgUGIVihfw0Un4ORSvD zspQ4wfcE8MUMrXmw8OVgbAkXl4Xcl7TSC/N/y7H8+mtcPgoTt3k9vBCL9t1fuu+GjcW33UkD 6/3Bb8YRuW/kJuMljX8IrcrUCsybN1M++EY9XcUQGgM8kDboWA7uOTLA7nocGIlEAwaF+ULwr TrH9CAjXBLiI8zmxB6ajbDAO5QIC9qUVDkG5L67UoWBP88FqZLmfqqvNr8Yf+MbvYOMwDS1p+ HB/S/0AteFZCO2WGKYrQaHRGxIPiCn3qupk/aiiLngUk+uOpatDJhSlJsOepEcb4slmuymwTA 4lmTBtXCMs2Cjyy0M/gIH5zJ9TvSQ1bLC+nUDJ/PuP0lDMHtaOWhgN03fpIy+yfuz0/kOTZe1 kA0zRByZnNnbqDXNMbIcb407V6rwnFW+aSf4c+GJyBnfjNBxQLampUb4YHt7DVW4bw8BTDJiQ fmwWoKPFB9Os5z6LiUzsgh+WITmkbqdBLwRlmTav+qcpY5m8ZOdqdD+GBqf3sxCVCe8peOpOt 0Fi+VZ4 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, 18 Feb 2017 15:52:31 +0100 The local variable "new_counter_index" 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/hw/mlx4/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index f3194f2a6e62..4e08e4d57181 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2612,7 +2612,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) int num_req_counters; int allocated; u32 counter_index; - struct counter_index *new_counter_index = NULL; + struct counter_index *new_counter_index; pr_info_once("%s", mlx4_ib_version);