Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424014AbdDUStn (ORCPT ); Fri, 21 Apr 2017 14:49:43 -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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 29 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; - } } } -- 2.12.2