From patchwork Sat Feb 18 21:15:03 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: 9581341 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 CB051604A4 for ; Sat, 18 Feb 2017 21:45:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10C928715 for ; Sat, 18 Feb 2017 21:45:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A43C62873E; Sat, 18 Feb 2017 21:45:23 +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 5070D28715 for ; Sat, 18 Feb 2017 21:45:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750792AbdBRVpV (ORCPT ); Sat, 18 Feb 2017 16:45:21 -0500 Received: from mout.web.de ([212.227.15.4]:60556 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbdBRVpU (ORCPT ); Sat, 18 Feb 2017 16:45:20 -0500 Received: from [192.168.1.2] ([77.181.107.93]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LgYdx-1c2n401YDF-00o1Mi; Sat, 18 Feb 2017 22:15:05 +0100 Subject: [PATCH 25/29] IB/mlx4: Add spaces for better code readability 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: <92a1836f-8244-7b52-1e45-f791dc3ceec4@users.sourceforge.net> Date: Sat, 18 Feb 2017 22:15:03 +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:ooeT3oYBemhDX5ShN/g+sYl7uMUqtE7+zg/ETyd0J7X6MMALGe5 HRTYxb5wWMpyGd8UkZi0srZNM1dQgNAdXczQrLeH98PGNq09y3uLb8N/jdN/AT+T8Sf7wix x3lUouasuS9jsTGfhdzfCq/hagt8zPh6zcVt3hIgwA0laO6uU+z7BInzcBHQcx8RsJ/+1ga lcS+xiNA6BA6RJaMWP5BA== X-UI-Out-Filterresults: notjunk:1; V01:K0:lciRYcyvTFk=:uKfYIgcU4grnPfUXgx3Lk7 1IoAa7VWfiyXSGuEzjIcFfqIJcENz+l9xSXnboAVYc9Nicl6iyI85irxW/yknV1NLWJID29O8 VmkH7E/dnSe4lV7a2rX7TvjQCRAt0HtbZuDXYiIUoGvzg9zl8E24/nPfRQqs9b+OkShaXTvaV qczz0Bdid2hZ9Vx9p7XlSaufmhpJeRDgsiXmiH9zi23U1GQdJ6L8ItbsmIdlFyLoe/k/Y0Psd 59JKTJ/iyk15kL8W2RiwNunIDcpfBDg28G0njf8NHTRUBbiVZt6MUzCJ2/Cxt99DG4nxt183O pKpEkuw3ZsxnbxAdTSZysnU4JbOmY33/++QBKv4YWGdllG8uOYn6nWLZQ3c1Rltc12RQ5vQAs da7umdsXQMI05aqK9iIWX9hz++l14bgrCDLs3Ij/MjGSpJ6SpUqIhvNvlRsge8PglowqUAXUd qY0dF56CH8MLOfGXUlrLXvX6/pIs598mRy//TTmrmfrEwcW4w+APswb/BvYph3HXkk7dxAS9J dbmocD+brRep7RXK8edgAyoFEEz3hpvwsiArl4o9QFhzYivRbtvcPQLC7E3gaBitGN3uptTs3 g5U6gB+xnrbEzcXKq+d7yGX5HMxJVvoEuO+JrjXOrjJzdrXKmYFkJAjd5gAjXtyTHHVh07Sm4 ApbAf805BatDqCds9in0o7eBhh4bRct9M66FseEfKTL7XjJbRKVYzmsgp1W/fQQf9AXo7yyKz BCwtO6cpob9rIRLBjNb6TkYp0+Te0VeAjAOIsCAKSl+e6iypmI+FcHli+BY9lM8uSjpsdFzEY FZ6EaWG 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 18:52:11 +0100 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 47a647c1d94f..16164ff09a86 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -1063,7 +1063,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); } @@ -2585,7 +2585,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);