Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423585AbdDUSpr (ORCPT ); Fri, 21 Apr 2017 14:45:47 -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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 27 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++; -- 2.12.2