From patchwork Fri Apr 21 18:45:16 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: 9693485 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 0A87D601D4 for ; Fri, 21 Apr 2017 18:46:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F35AA2864A for ; Fri, 21 Apr 2017 18:46:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6C562865B; Fri, 21 Apr 2017 18:46:14 +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 7FDA62864A for ; Fri, 21 Apr 2017 18:46:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1042335AbdDUSpp (ORCPT ); Fri, 21 Apr 2017 14:45:45 -0400 Received: from mout.web.de ([212.227.15.4]:62947 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1041972AbdDUSpm (ORCPT ); Fri, 21 Apr 2017 14:45:42 -0400 Received: from [192.168.1.2] ([77.182.39.184]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lm9T7-1cSqpr09UP-00ZcQq; Fri, 21 Apr 2017 20:45:18 +0200 Subject: [PATCH v2 12/17] IB/mlx4: Delete an unnecessary variable assignment in mlx4_ib_add() From: SF Markus Elfring To: Doug Ledford , Hal Rosenstock , Leon Romanovsky , Majd Dibbiny , Matan Barak , Sean Hefty , Yishai Hadas , linux-rdma@vger.kernel.org Cc: LKML , kernel-janitors@vger.kernel.org References: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> <1492720654.3041.16.camel@redhat.com> Message-ID: Date: Fri, 21 Apr 2017 20:45:16 +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: Content-Language: en-GB X-Provags-ID: V03:K0:mJd3kMNykpmplMThxz+4IbsitrgUjpD0NTlkVp0CxGR2ZYeMBSv HF0BRLJ/h8flTpSIDhWsatRWLgpOXoACrAAk+e3c6hsO+ohUsR2UNHB22ZsK3+SM62ItkdG UOfG7siAI0OHjI5TD+D3wdUk4e3rGy5DhkEQaD7zAD7pfk6I8x4ocBGzF2PN9mclhu4PnyG u3KGh4YNwO+/SBqq5joNQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:zAKFDsdyzC8=:9fpbSdd/BXpTdCR+AuFBED /jrDCSUMJpSthNQzc70SZ4eORerRtnIWZjR6B3kxdIcBiP8nenpFQqgtRgKKEHL2JsxX2HG+K YPztPHBElyw2U61AMXFdY4bwNeI1St7JZfucNeiD8XDYr4I25+2LGm9AYInkURE2g41gkId+g vPSgeovWqC9CORa5OVLkbVZboKwPsBuF+jA43PyR47BMxeQg1yPIBqzP25oQXOwkXvzHfZyfy A4PRE3sSpCTGxCw1R7gi8dwDRKae7dooMHZRtht3JC2JWNdmU1tsUGnw5hi/pcSa60/GrFp5F hg9OKkhF0JUkMAObWtODi41tPdSGgFz3xC7FO7oqdi1W60vimce+odZ3juMfhw4b7dzweOrNk dfqH452krdBKX50kyM1IpqgKw5IVBcdohjnctPHBFyQkNhUe0iktTQNGW7U3UIUvaaQYqw8C9 1MIEtFmth2kE5SPbFsLNgI/EiiECS9vHAhXXFbMNGJn4CM90QMZmzmE7aeXmatPpENUBooHPm S9N1JFCAXVsibiWgrjTev/wv7elCGJ1P9umUpr3Cqm3YOjIRrf4l4rz2nQyNLIUlKivfGT37U rbjvfMKqn6OnA4ZZj5FHvVKsxeCnaa/q7JJakRTnTmx0KDxNlK0y3k3iKMcUg9Vf2B3f/LHFw T1DMvwGrzoYmBa5TyoxRqFVWrTJFn6tyABL8gSbZ6/gjI+r5MI1RbIYjWbUN0QsQgwXMG1E/X uxBfCwWM1hrcr2gDrXvMTStfy9JXnWS9n3NfAdT28kENmpXavDopDMixfo/bO97b63AgO252a NK8yMvC 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: Fri, 21 Apr 2017 18:52:03 +0200 Delete an assignment for the local variable "num_ports" at the beginning because it was initialised with the same value. Signed-off-by: Markus Elfring Reviewed-by: Majd Dibbiny --- drivers/infiniband/hw/mlx4/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index d08b9b154c97..4eb2466530dc 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2618,8 +2618,6 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) struct counter_index *new_counter_index; pr_info_once("%s", mlx4_ib_version); - - num_ports = 0; mlx4_foreach_ib_transport_port(i, dev) num_ports++;