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