From patchwork Fri Apr 21 18:54:06 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: 9693517 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 B2C156038D for ; Fri, 21 Apr 2017 18:54:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A766228470 for ; Fri, 21 Apr 2017 18:54:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C1992863D; Fri, 21 Apr 2017 18:54: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 6CC7D28470 for ; Fri, 21 Apr 2017 18:54:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424187AbdDUSyo (ORCPT ); Fri, 21 Apr 2017 14:54:44 -0400 Received: from mout.web.de ([212.227.15.4]:52462 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424028AbdDUSym (ORCPT ); Fri, 21 Apr 2017 14:54:42 -0400 Received: from [192.168.1.2] ([77.182.39.184]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MFLQi-1cpYLW2Y7A-00EPbY; Fri, 21 Apr 2017 20:54:11 +0200 Subject: [PATCH v2 16/17] IB/mlx4: Add spaces for better code readability 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: Date: Fri, 21 Apr 2017 20:54:06 +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:cmoj0IYax9jIxD4KeHUPMeB5qYm6+H6Nmxt930A7u+Kt8S3P/I1 ZV2yhGMa7O3gT8VpNr/V5IqsbrBhKZsBhMycMu6xdpMhKCiAC2ZH/uk4llyKC/LVYBYiNcs Eae1/6nIRIzWEBd8qCUaduK9Pop8uw7/u3VeFpmixviCkQ7opcmeC/AHssOHWBy4i9QbICD IJlCjcrMku63QhPGEHCrA== X-UI-Out-Filterresults: notjunk:1; V01:K0:tmhsArA89QU=:7xUwvE7TiE5s2ijetIQ72U 5wDcmj8JfAPpUdsM4v+3ExI24pKB+OdZliL09QiBRy3nvHsEy//H7Bs4ZfnsaDUGEDMvedzdy 4JxEkQw/QH1rs3/cboyqJ7/EQwlVI5k7VHYfCpscLFVTc62HBdPZ57+mIMGjdOA96h5HrvA+z CbFdM7BEGeL+UZxK6X9PtoxsY45cg/4JNhfOlGiTyvzHu00oel4ZxUW8UcKXlIC9GXnBcrN9N jYPji7RJJrsPm8pK1drI0/AbLszvkPAhTk9HnZeMiO5udifZBuQiRGD+2yDNRbgr8j0Fg2t1w tv2umgdYEMA1JG2CKGBc8oYN8oiq10d1Czme6cLRd7XFdYDu5qB5hIJk/uWi104QUofqDCfQE XWcEQpJe27tkQWBkl3mtrymVgaFyeuA0tMchivZf4GBXSG5yPAWTGPJdZSeuwHU/FWpj4VNnX gmVMariBKzOn+8UnhiwoyJnFK0nJs/j75ipaVJoy2y/KKfiFrpnJwt6xVP4z5G/0aeW8kcAbi f0nWqlyuxnW715bITfdv2sp1leXJ69+EiirKB8fsJyWw+wQksDrpTBNbGgPi5vzkc4L5bfnUZ Wx6UuM2z3WmWlmz29xsLwbh+bFKj/Gy1JYsKDQjMwSLIAlaGnedv0P4N8nHl1GCl+M23yjD9O LJUEgEJXxN1yci/z3f7eCLjErBsZTsd4NfjQWnfDKJjDFM84eOVID+xFNEsrpPiQ5KGeKqIPg Ly5JcrU4GoxX+aTH2UBn6khSHIURnkkj3UUa68NvbCE3/2z8mkbxcB7ZULDe9kjdjr6CZ/0HU EqLt5ai 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 19:14:11 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/mlx4/qp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 068abfdc9d01..15240163c399 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -1065,7 +1065,7 @@ static void destroy_qp_common(struct mlx4_ib_dev *dev, struct mlx4_ib_qp *qp, list_del(&qp->cq_recv_list); if (!is_user) { __mlx4_ib_cq_clean(recv_cq, qp->mqp.qpn, - qp->ibqp.srq ? to_msrq(qp->ibqp.srq): NULL); + qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); if (send_cq != recv_cq) __mlx4_ib_cq_clean(send_cq, qp->mqp.qpn, NULL); } @@ -2599,7 +2599,7 @@ static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_ud_wr *wr, u16 ether_type; u16 pcp = (be32_to_cpu(ah->av.ib.sl_tclass_flowlabel) >> 29) << 13; - ether_type = (!is_udp) ? ETH_P_IBOE: + ether_type = (!is_udp) ? ETH_P_IBOE : (ip_version == 4 ? ETH_P_IP : ETH_P_IPV6); mlx->sched_prio = cpu_to_be16(pcp);