From patchwork Sat Feb 18 21:03: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: 9581259 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 52FD9604A4 for ; Sat, 18 Feb 2017 21:04:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43F3728739 for ; Sat, 18 Feb 2017 21:04:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38AF928779; Sat, 18 Feb 2017 21:04:47 +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 BB20E28739 for ; Sat, 18 Feb 2017 21:04:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555AbdBRVEe (ORCPT ); Sat, 18 Feb 2017 16:04:34 -0500 Received: from mout.web.de ([212.227.15.3]:55544 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525AbdBRVEd (ORCPT ); Sat, 18 Feb 2017 16:04:33 -0500 Received: from [192.168.1.2] ([77.181.107.93]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MZlNu-1cwJc42sMo-00LS0c; Sat, 18 Feb 2017 22:03:54 +0100 Subject: [PATCH 15/29] IB/mlx4: Delete an unnecessary return statement in do_slave_init() 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: <50e213dd-b3b0-5028-a463-b9fbdf6e25cf@users.sourceforge.net> Date: Sat, 18 Feb 2017 22:03: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:zl2NKIc8g+Y5qpTffOA1TFp3pHXO2lTuLad8jjIM8DzXH2sIQ1R 86LRxqSTpYM/z/lqpyeewSUPi8Zf+CQki+mN85QqrOX6Uot8hld8W9x+VzuW72fUURpgdc1 WQhn+CUhN4Sh1+XD7pLc99Cj4eRv2DoBbpSVqYcnqSEvPlElzqLV4Ldz8ruGZ0T759gOKF8 zIhvCbb/AYfP2SzPhRgPQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:GSlQk8zscVA=:6hBaiEuusxFQbJ+gDFQpWr x0iAAbUOlW1mWyV8k81aX7mHHkIJUWUSoL5p3PWJ1JFMMGszN3E1IiBvpdEyhOdeAbccOePKU JXJQueuQAvorc3r524MXLKYCSQmLEIvqN8nunYI0uGr8r1ymjUdYQYPLP88bXxb1A/+EerYQ9 1jWDQq24GTlvdSr4Tjmdy4VqfkBLvg1/2BN+Tatii6E2b5EIJhblTHMfe0flVbNIDahz6Jq0A nroSJaMMBqnSRQX31JIMdNvuvSkwxNsqSTqOM7oBQOpNjwuZ2hmBiHXqlZsYrCCtcpKqqDRUK dALV/lKiOqF82N2DPCQ6iFEsOjlvubbmlr2iExOjr3wcNOxFxcM+Bi83JQGS++3aHGQ0cl2Sb iigDEbBUI9OvEmmsPAdGDF4p71OUYm3uLnzi4wDVQGAhaA4xJcITxJL1ZLmxBt35ebSC7I5Tv 8MpJ4uS82eNmufUxxSqxnlBBiLXC2Hl5Dy8tlkErx20N0neJiWs9WFvoyqBaLWV8rpSQmOO9L R2t4+AScJSOUwKfKx/7TauoaBbXBR1yZaPuDeTZYSd5Mr4/eEOAGUy7j7mhbB+UVX9C2PiP9v YdJSF2e/Kdl51MvW46IhP96E3CMmKGyvHcdm1+xUGG3obTdW00fSHl6o79/TIerZrL6jWWDKT Qd6JsiH/euta2Do5TS0j7u6JpJTTWYDEZouY9CzmgznPgQ3MjlNoGVvPsZlKdDuxaEHVPra5l LRSqwZWBLDoGy8nRIGUoCFFnQJnSyiLUneUUZx88nFHKOl+iEXjzMGgylG6mZtLF2uoVKhr3g V+UZf+X 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:16:54 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement here. Signed-off-by: Markus Elfring Reviewed-by: Majd Dibbiny --- drivers/infiniband/hw/mlx4/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 89bbb61d62f5..b2b472977a39 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -3131,7 +3131,6 @@ static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init) } out: kfree(dm); - return; } static void mlx4_ib_handle_catas_error(struct mlx4_ib_dev *ibdev)