From patchwork Sat Apr 8 12:13:45 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: 9671041 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 4B77760375 for ; Sat, 8 Apr 2017 12:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B05A2823E for ; Sat, 8 Apr 2017 12:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25FB02849C; Sat, 8 Apr 2017 12:14:19 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 CA55B2849C for ; Sat, 8 Apr 2017 12:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbdDHMOC (ORCPT ); Sat, 8 Apr 2017 08:14:02 -0400 Received: from mout.web.de ([212.227.15.3]:57578 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbdDHMOB (ORCPT ); Sat, 8 Apr 2017 08:14:01 -0400 Received: from [192.168.1.2] ([77.181.115.245]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LvB2o-1bxbXl2Tpa-010KhA; Sat, 08 Apr 2017 14:13:47 +0200 Subject: [PATCH 3/3] IB/srp: Delete unwanted spaces behind usages of the sizeof operator From: SF Markus Elfring To: linux-rdma@vger.kernel.org, Bart Van Assche , Doug Ledford , Hal Rosenstock , Sean Hefty Cc: LKML , kernel-janitors@vger.kernel.org References: <50db1f1d-b689-1a9d-f6dd-a0f55169c75a@users.sourceforge.net> Message-ID: <8ce69cd6-d8fb-3468-1629-611f2fa76eff@users.sourceforge.net> Date: Sat, 8 Apr 2017 14:13:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <50db1f1d-b689-1a9d-f6dd-a0f55169c75a@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:b4H10b47hsXHPS8j/nnnPnYSY9h5iPNN0HQlo+1hwZeS926jGz4 4wTiP9wtoRHWvGMAqBAcrqd0Fzlr956UHVFnHmlR5qe7dB942HhbScbSG0O2XWX+g0GgaZS ON7jpy47pVmUkb8w0TOJS6B9h7UbUvU3FAf8G0vGvpGjBj98mfYBgEbTSpsYrh8kbqY9Ev1 s6Lp7dfRJBn+ZAF8QiuSw== X-UI-Out-Filterresults: notjunk:1; V01:K0:ZLA3lM7J5CI=:5hln20LYpYnWJzL+T1972z CciwPPAhV2FqEh6pjH6lKXOQ8vlwxXyGbZj9Q0HK/6CplMw9pfmc2h1zjnu2y+Jdbz81bz5Fl 2WFLVr9Z4iVeWUlGMz6zWFIZb4VI7pDVsrASel7NU7qqA3hvLEqJfQwu9BF1Oebru86SS0aEo +Lr9gQ1KNMbuvfY7Hmie2y3JZqB9094SB/LqTwWg60ypVmuaDc67UU9eUzTj8IYcdJX8FSOLx Z4+j9t/SsSl3T/eCW074OUy79aBGjx4AevZDivHairvBdi6QiyzV36BaTo8h2UNk5hx3KwGFv eHP0rhkeb9Py7hJlxKklIlBnPy0+HCV4577FCfBtLds0tT563TwP/fLHlzeJuMjT+Bkdni4IQ 8ohjAJvwB/a0qENf6kf9dqICzsPc7SK91p6ep6O1dfVQLOb0p5E2be+7aBya4srXrDgWJPyvi 26Rn7/CxtpkVXiwn6qVYdt2Xy1q/hPaXYEHIueTbqG2DePzeYWZfKMdbi/XfROd0TbU34qUnr Fyge83/2NlLzEM6iqGcOypL0qbVjEnIKgPb5dPUXs/BUGo9gimreJVLb13SsOBX29tFyTfwGn dFv2pUougoW4T38Lcwdj/QKaBwQI9YCYYZA4cJlxGXAgMFPo8+MBf/4GNYP3kzf7skMxYmVfJ QkmhOrBkJL1a7jnuVI6QZlyac9PlB+xfDTzUMl0F7FoaQf7K/d2DF8neQmaj2+00jlbPlQYyy 14D/ITwUrk2pU2Kk7+2VVjyTt6qofV9mynBX9KgAy5awbn/tY3FegIhvyVl3aemRAUhM0/kFt txlHk2k 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, 8 Apr 2017 13:56:33 +0200 Replace the source code "sizeof (" by "sizeof(" according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/infiniband/ulp/srp/ib_srp.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index bc934c5f1e36..0229328e65e3 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1628,7 +1628,7 @@ static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch, u8 fmt; if (!scsi_sglist(scmnd) || scmnd->sc_data_direction == DMA_NONE) - return sizeof (struct srp_cmd); + return sizeof(struct srp_cmd); if (scmnd->sc_data_direction != DMA_FROM_DEVICE && scmnd->sc_data_direction != DMA_TO_DEVICE) { @@ -1649,7 +1649,7 @@ static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch, return -EIO; fmt = SRP_DATA_DESC_DIRECT; - len = sizeof (struct srp_cmd) + sizeof (struct srp_direct_buf); + len = sizeof(struct srp_cmd) + sizeof(struct srp_direct_buf); if (count == 1 && (pd->flags & IB_PD_UNSAFE_GLOBAL_RKEY)) { /* @@ -1722,15 +1722,15 @@ static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch, } count = min(state.ndesc, target->cmd_sg_cnt); - table_len = state.ndesc * sizeof (struct srp_direct_buf); + table_len = state.ndesc * sizeof(struct srp_direct_buf); idb_len = sizeof(struct srp_indirect_buf) + table_len; fmt = SRP_DATA_DESC_INDIRECT; - len = sizeof(struct srp_cmd) + sizeof (struct srp_indirect_buf); - len += count * sizeof (struct srp_direct_buf); + len = sizeof(struct srp_cmd) + sizeof(struct srp_indirect_buf); + len += count * sizeof(struct srp_direct_buf); memcpy(indirect_hdr->desc_list, req->indirect_desc, - count * sizeof (struct srp_direct_buf)); + count * sizeof(struct srp_direct_buf)); if (!(pd->flags & IB_PD_UNSAFE_GLOBAL_RKEY)) { ret = srp_map_idb(ch, req, state.gen.next, state.gen.end, @@ -3300,7 +3300,7 @@ static ssize_t srp_create_target(struct device *dev, bool multich = false; target_host = scsi_host_alloc(&srp_template, - sizeof (struct srp_target_port)); + sizeof(struct srp_target_port)); if (!target_host) return -ENOMEM; @@ -3383,10 +3383,10 @@ static ssize_t srp_create_target(struct device *dev, target->mr_pool_size = target->scsi_host->can_queue * mr_per_cmd; target->mr_per_cmd = mr_per_cmd; target->indirect_size = target->sg_tablesize * - sizeof (struct srp_direct_buf); - target->max_iu_len = sizeof (struct srp_cmd) + - sizeof (struct srp_indirect_buf) + - target->cmd_sg_cnt * sizeof (struct srp_direct_buf); + sizeof(struct srp_direct_buf); + target->max_iu_len = sizeof(struct srp_cmd) + + sizeof(struct srp_indirect_buf) + + target->cmd_sg_cnt * sizeof(struct srp_direct_buf); INIT_WORK(&target->tl_err_work, srp_tl_err_work); INIT_WORK(&target->remove_work, srp_remove_work);