From patchwork Fri Apr 21 18:48:55 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: 9693505 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 E3175601D4 for ; Fri, 21 Apr 2017 18:49:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D784F2864A for ; Fri, 21 Apr 2017 18:49:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBBC52865B; Fri, 21 Apr 2017 18:49:42 +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 63CD62864A for ; Fri, 21 Apr 2017 18:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423905AbdDUStk (ORCPT ); Fri, 21 Apr 2017 14:49:40 -0400 Received: from mout.web.de ([212.227.15.4]:51375 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423007AbdDUStj (ORCPT ); Fri, 21 Apr 2017 14:49:39 -0400 Received: from [192.168.1.2] ([77.182.39.184]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MT8x4-1cbkmF0vEU-00S6o2; Fri, 21 Apr 2017 20:48:57 +0200 Subject: [PATCH v2 14/17] IB/mlx4: Delete unnecessary braces 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, trivial@kernel.org References: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> <1492720654.3041.16.camel@redhat.com> Message-ID: <72f1d197-be64-fa7d-bc94-44ce590b78a6@users.sourceforge.net> Date: Fri, 21 Apr 2017 20:48:55 +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:c4KbmUaIxNdLrz7QMRs3014n9mdLM4wwxo/9YUh3tTMa57gChfh 416uqc1/5p0L5KjdrC0mkyQfKzYPMlfGMrH1e4pSTeMIs4xoIojIDlCbcQmMFCuh1tvDZwY OWu0Zsr2Vzfr+mvR9wfz1tNWz8Xxj4it2AEyD6ltkJ2HN9IwpVMtgRex5pX2HLgTZVISpiH E+xK2iVDfJ7z7obpll+dg== X-UI-Out-Filterresults: notjunk:1; V01:K0:ymAwzZ+P4wM=:j6K9Sx7THGNQAV97Yh63qV 36LALxOIK48zekwmi3FhUs6mhhypEvo/KbsBjS/6wuPGOADA536YTkh7n4eArU97nW2ws1bEA hgOYvNLQkk0kCfjwk4BloZ59gW4tjvf7brTinoHMdgPOd8cf1mx4+JW3h7x2NLaCQLRQAVLV4 WdWMQGDbcKbhwBXp8iveXNriEuHuSGtSkTtlZoZ83E3CWCCr35Wzb5zM96IacIjgGQYXA9sJA MtQlfd942XNmDIOW+QgjDUf5eyZPQf1JIj52/8Sbm3AL3w+1qrWxklcujYpT0MdgeRdgFbWn4 Y0j2RDDa7BLSpQg8ZqM+I55rBcDLHpAvPadrySaLNuw0D9a4hWuHwLZryjO7QC/ea0CxW1BeA PUtxUVH8wvnVymoBUMyFYw7PwuvQULyCtvzXmosLfdbt7ASdHtC67Y7eFSWw7Ggm2EThhwWPf nDsjpP3GaqYjcQdkcf5abaTW9UUZv9ERHooE8rAitLZoWxmkcJ6spoln7yqq6AdesqnhgLXgF HJPvnzR0bBaEb1UNxaqZaAqUOuALqNu7ZfG0d5qugvHyjnhYir5oVo1ss8X3a52v4Nk1e74ll yFHzallF509oK9RRsT7665gtFH7QLeIZ74oQUQT3sPtDdC4DteKv47Xu0okLFTC5GHOkuMcnl eqqvcuM6eLkb1V/z75bY9pb1Ia+z0lVOgelOXxNFwRMR+AJglHOIriWu0JsA1rvqcbAuXHEL/ H8/dE2I74UcK/yAj+YnQcBIerzDrWnS8Dhv6lMuh9dBOwPQpuDD4S1+Pcqs8rG+V0nJRz4IA5 fnIAGH9 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:58:43 +0200 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 67368dea9b6a..7dd5468cd4b8 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2901,9 +2901,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; - } } }