From patchwork Sat Feb 18 21:11:22 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: 9581297 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 F2422600F6 for ; Sat, 18 Feb 2017 21:11:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2C8128745 for ; Sat, 18 Feb 2017 21:11:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F892877A; Sat, 18 Feb 2017 21:11:56 +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 8BA6B28745 for ; Sat, 18 Feb 2017 21:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754745AbdBRVLh (ORCPT ); Sat, 18 Feb 2017 16:11:37 -0500 Received: from mout.web.de ([212.227.15.4]:53566 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753745AbdBRVLf (ORCPT ); Sat, 18 Feb 2017 16:11:35 -0500 Received: from [192.168.1.2] ([77.181.107.93]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M3jsn-1cNo1i23iT-00rIAE; Sat, 18 Feb 2017 22:11:23 +0100 Subject: [PATCH 21/29] IB/mlx4: Delete unnecessary braces 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: <6abe0f08-b308-08ac-9f84-868887c0218c@users.sourceforge.net> Date: Sat, 18 Feb 2017 22:11:22 +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:C/HQavftoiWgv1c1b7d9BfXx6tr03BV6v+87q3sBELDHVbswEg6 MUT4RXw+u61zQ/GtaTcrXK6RhsVeBZku/Yf3kudo0w3eqHXxafSsEiV8z2MOUQKIKDX3rXE W0mJ7KhzKX93tkal995PC1ED3lzyfaxIYtj4oEu5/wLNZ1nzOd/zvcS1H5HJl4LutkSjfor m8u+ORGOMCyKnMX/azOfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:XnSJXOUQKBM=:Yuy1716iWvU8g4B72VOlWi ZfOwxvnYnnc2aGVq0Pe5caMFoRyohkl8qwXxnDa6pHgMUQ5/TphyeD3avtwROhT9zS53wTvQy JYEslNYvuaAvitBIHXM2KW6rFV+0sa5wDZDxH/F+ZVoeI5WOgqEU2LvZm5Ch+d/Sw+3wZVwhB PBNT2Elpqt9KHQKqYATQzaDXgMawr5DAgQ0u9jf2T1sE9DSIJx3zGRWjmsirHznCQrPpbuSGd 0qFh7DKOvq/1IWfnrZEEJt3BvTrExa1ytZSgwFYM1Ea32A6Wyz4kmNRKQIy1DHSiDr4MIuqyA YxsHb0Ldv7Z6gUU8Qd+PB4yZ8/HmHoHTSOwLHtGZQLsyvi9UoszXIu7F7zqPs5iZNeS3IOVpe +nIYJQA/W8SyDMGvrlyvGwnco/wty2tvVUYq+T0pEZkTWbvq6oUmXgsz8EEjwZlmLqyQSLDQj 1+R3Mda5luyxn9dS5jiQItkyx2l/g7Dw79oOSNWA9biIxFIIb2W3YrQE4NzxTYPpvLFmad6ck LlPhAi3O0KT80Ifi/hZEgjiY/glAyQY4/LFug5Sk8KmVXN7892e5/XYT6x1fNeWUnLW8/1dqV wOW7c0aIXbVN3ykfpSmxTLmFIR0o6JR4RkdMpQIwm/PfLf9kceEuad1UShoSwaWBKD4ZV5K+1 RKMFU5VDG/vdKwdjDvRH4nR9ybE8geMsKsCBmvugm54KMLPDPILLx/vVwNR2V6g+qriODKO59 X4oPual6Wbzo3X6RMUUbNem20zI4J8E5t9lE2UGU2kRVxou7NSg6CCYWJ+3/HKTiFeWvP2Ntt 2hI50Yz 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:32:41 +0100 Do not use curly brackets at one source code place where a single statement should be sufficient. Signed-off-by: Markus Elfring Reviewed-by: Majd Dibbiny --- drivers/infiniband/hw/mlx4/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 33b46c463ffa..b950538e036e 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2898,9 +2898,8 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) } if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2) { err = mlx4_config_roce_v2_port(dev, ROCE_V2_UDP_DPORT); - if (err) { + if (err) goto err_notif; - } } }