From patchwork Fri Apr 21 18:44:00 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: 9693479 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 8AA58601D4 for ; Fri, 21 Apr 2017 18:44:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DB2F2864A for ; Fri, 21 Apr 2017 18:44:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 710D428660; Fri, 21 Apr 2017 18:44:28 +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 183AD2864A for ; Fri, 21 Apr 2017 18:44:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1041602AbdDUSo0 (ORCPT ); Fri, 21 Apr 2017 14:44:26 -0400 Received: from mout.web.de ([212.227.15.14]:63382 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1041325AbdDUSoZ (ORCPT ); Fri, 21 Apr 2017 14:44:25 -0400 Received: from [192.168.1.2] ([77.182.39.184]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LfAro-1cDCcD0ZHE-00orOS; Fri, 21 Apr 2017 20:44:01 +0200 Subject: [PATCH v2 11/17] IB/mlx4: Delete an unnecessary variable initialisation 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: <1b8eaaee-c417-f9f6-9bf8-04ea082e5d0d@users.sourceforge.net> Date: Fri, 21 Apr 2017 20:44:00 +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:DfV1OOlPbgzdFu9tqreJWR24A1JcEPqOCM8jUEro3QV1ZprLANv IbjaQ/BucAM8syaDq2VwSEQRtXXS2Oj/8VaV57Oc9ibOeKvOwSXY/Yw5jCGY5N9g5UlD3Uv YNyXvNU1u2pYAhTGdV9jH+qbvUdsSTMMtoie0mpOrnZ4d82CD6lcSFvHdegdLaLLS5ES7k7 yiHREGyz7ri+6DT+hgO8A== X-UI-Out-Filterresults: notjunk:1; V01:K0:7NVsfr5VOeE=:ck6HxDyOvT0VCqjhKYspDd FGe8Gp46WsD9xUOZILmNMgUvK2lnPBZFPpWV3Te38KcJCp3TXv10+KfNEY2DQP55blOR+GtaP QOG57GlDvMXlmQd6yAFj+Bj1DHg08cGzBUqwuMcNCSmV147qZ9baApCdX7MeCdA8oOhKd9rKC gnNnq6s4FDRBj997GfACjo5L2T5Xx7mp3nDnY5dJBXpPhTVWYtqBWxgJ5qX/0kWvoKrxv8EYY LAt0/BMkzPf7w7I/Ql7qPMwp4MpeQwEEO9t8WStW90d4xKMWG6oNxHw8hZxz8wJTFp16BC6Jp Jb3dYbdW1raUSPD4VWtaXKUc9n9ZNL6PjFh8Gn2LsHfZFGH5+xRd5BZQnAT/UZm7GohYgbl8K uAzS98x6+oscXF4M2dgh38C2w1VHJacFgZ5ID1u+NtW+OoIIQXRjfNj1I/0NFZLUg/Ek4fxH+ JXTWYtUQ50HkXppcNOlDPPf0yk3A864PG36eB9Yi7IhYXpEOFvSZ21zXdvLFcYnRXroR5viuX n3pXf22Q5y2zk+Wq6VI8lxKnN4uAA6Qbixv8e12qiEEB4rDN9yWuOL+ZjUWSxHKBq0wJiSV68 xCJNT97ljn/QSga95eBhXjz8EbiAljxb3IKmtBQYbBUrj+xzepWl3AF86iReG/oh6nsUMk5Lz VR/shzO3ycd0LthDq+gLXxnTPMlwcstfD6SHMyr72dZs/IGlDY6ZHkMjnbKb29QEocgIzfVSb V0TlPjyO4gB7CFIV2Wl1ZOQKIWWb//GUb7+MRMJ57UtWPcfWDbCdTEP5PObro5hh1NePvvfhU CS+cIAa 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:44:15 +0200 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 a54e2f04929b..d08b9b154c97 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2615,7 +2615,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);