From patchwork Sat Feb 18 21:08:52 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: 9581279 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 CFDCE600F6 for ; Sat, 18 Feb 2017 21:09:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF5B828745 for ; Sat, 18 Feb 2017 21:09:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B27E22877A; Sat, 18 Feb 2017 21:09: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 4323528745 for ; Sat, 18 Feb 2017 21:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754347AbdBRVJN (ORCPT ); Sat, 18 Feb 2017 16:09:13 -0500 Received: from mout.web.de ([212.227.15.14]:54345 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753882AbdBRVJM (ORCPT ); Sat, 18 Feb 2017 16:09:12 -0500 Received: from [192.168.1.2] ([77.181.107.93]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LlayN-1c7mJA095j-00bH7s; Sat, 18 Feb 2017 22:08:59 +0100 Subject: [PATCH 19/29] IB/mlx4: Delete an unnecessary variable assignment 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: <3f4e69c8-a030-fb75-26bb-e14208c141c5@users.sourceforge.net> Date: Sat, 18 Feb 2017 22:08:52 +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:5SbHgrQnAoWipq3zwa5Gzs5OuWieZPL39sahfpsu55l2gt1+e71 lZtmwp8B0IGT1AWc2597ATR9nNYIE9zrqnsGPFYCIHAZ1adN7FuAl7ZaSHq52bTis8c7Hp+ SwuRCMuJCm8FvvvXxdDJ+sEwHmbXO98UnOOz33T97gqgyY9H8LI90UCa/OLayBlIW8ze0NM UJvzDcbRJyvW9crJexnPg== X-UI-Out-Filterresults: notjunk:1; V01:K0:jdT5WCRy/O4=:eNlU4OuINulMv4MGncg6yv Bb8RcGj+Q8NcLV7uNt86wqfVyHeJuXIBpXPgWG8ZZ1M81V5aYGhuRSFwbafB9ddx0Rz90srL+ cYn7W4r0TDHJWgigIz9ILLZnt9UQEk+Q/g72G5z7uJEI0gAX2rhGhJ9zzuj1Jt+3/y/MGZP2V ooe+n/pFHehKia8jIjsRP5TWjie3ldm1pqfHJUtDdVeKzGN7UAtlfQauYo1lUZ6IedxgagOIE FfM6U1tu8hAhIw+NhHC65moR6gBwFn/pYfuP1daAjk2tJXTwquvsomQEGWV/Xj2SqYFEcYFuM zaFcvZXavzKdVWRXSsY+d15FqKMz9vSrcRlrdse7ubo8/UM8V9Aw8jSb1Igg3JAGLPvC72mZl Ub6diL7mzf1kp99U6Yxpw5MQSxzKwMyif5ufOokOJN9ZLSkwU9R09Z6o2ti17+afjsawLdN/4 nQjAroCgI+6lXf23FowbOquL0LdTHSNJjwq8q/qDLR899w43UF8fNlchE1HpVwkThghpNYTe/ BSIwKg0lcdT4DrLEYMjIz53q/ADTUP25wn8yBc09vfEpl4Nq26H0DA+4NHM/A5GkZSh2gIV8w j042WG02v8JBU6fcO68zajsgW/Z91ITi4vjGqYpObBtNmj3fy2ACVBq2nt+7gdED9ZKu7LHL9 0JPUoAGAZzSLFsta47sQjCI8/L9OpzwLF9KxrS5XfVWIkgxRVI4PR5kNa3PQKvH4PA1rkIxYT /eP4KLZymbCa9d2zhVi+O7HYjHjAA7xJz9qLpe/Jeco8JeFekUrv90jwPHGHKcMEHB0sWeK+1 QaYjWWq 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 16:00:28 +0100 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 4e08e4d57181..21b88d5ceda4 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2615,8 +2615,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++;