From patchwork Fri May 5 08:50:28 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: 9713195 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 E3C3560362 for ; Fri, 5 May 2017 08:50:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC5842861C for ; Fri, 5 May 2017 08:50:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0DA528630; Fri, 5 May 2017 08:50:54 +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 78C362861C for ; Fri, 5 May 2017 08:50:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752345AbdEEIux (ORCPT ); Fri, 5 May 2017 04:50:53 -0400 Received: from mout.web.de ([212.227.15.14]:52632 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752175AbdEEIuw (ORCPT ); Fri, 5 May 2017 04:50:52 -0400 Received: from [192.168.1.2] ([77.182.164.33]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MIN5j-1d44u129Oh-004C26; Fri, 05 May 2017 10:50:38 +0200 To: linux-rdma@vger.kernel.org, Dennis Dalessandro , Doug Ledford , Hal Rosenstock , Mike Marciniszyn , Sean Hefty Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] IB/hfi1: Replace two seq_puts() calls by seq_putc() in sdma_seqfile_dump_cpu_list() Message-ID: <0bf8f61d-63c6-ba0a-df2f-00340b26afa7@users.sourceforge.net> Date: Fri, 5 May 2017 10:50:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K0:TUBB0gVoJjpidprKY3DqTvECRCQyA23qJxkotSUC8tXbSSL0Y3q BcIRBlgW3yTlHxv63DjZJYVj5ePKf66hvGylHIG/CZPXDlYFHKsT9xJ/gi2QrDgTGPbB5v2 zsjjuWRmpXAaTRR1HU27DTcjmBelBOUmkNtVDlG2BPLblHfK6DAtBcbfwKhhfqlYVEXnnDJ 0ltLTBZG8ZI7in2CYhC7A== X-UI-Out-Filterresults: notjunk:1; V01:K0:hRlPX2KIKMs=:mTAaTLHxqh9TabMe/SMHUR ThfE6UzPXzcwdaDQvEGdde0T7zF39CjrgpbdDo5ziC0cqsyF51d3GM+xbfrT4UavVqUDMve7F O7jbFgbUfMYsZADC7jN5lrjSmX738CQhoI5MwZ2sgLvNqG28aCmC4+MqAr9k8dtNUel9kg6Fb 3HHxRUteDjUF5HiCmBMphaeSnv38BaOZoyMczxJ/hQfVlQClBIzRr6rUB07jxmybhQkixVdO3 AlWnO4VBwGC07kAHBNH0gky4/tNFVAVS2kE28dpgTBoZ3Y4BbMrdy0eIvebBTdsOQJVMaKCwP XMJO6tsCNUaLeQSQyjt3A3dWoKIN1Kb2QHPo3pVH75NLh7qFc2nfrZj3Er4Vibedq5Qlcsy0T aTwRoMy3+t2CGQPGQekU5SIvm+ydo4FAEbiq2x+XQSmiDMBBnY54dFsbQHxKe+PzBGrihnj+r pL0GMtghzuJVMSUJNvB7qN5i35cC0BftYPShLbyYd3mNEk8tHZI/uQn5+FvHFEg5g+zNv7thJ quVOyTxqF7d+OMHIZ+82SW7wtvx993vd0RJuXAKvckTgYks1k2rt+APsxlYheilLTvXXH+ow0 FFKCZDBnl77bNBUvFdTNQWWMT26CXxGB+CWGM/4l1C/oA/m369DusYzUZWdxvZXFz79KiyAHR ky7mnN5wzMDTICI8wFqYZATeCHRHd6lVDoi4zRu5KL1e9oQIrtmR0nkKQzHYY03IFUl+Pxus2 rz4FBZV+HaIO0oW+ffm1HARztd1BtviKQhAggUGIi5d8mnLTn14oEc+Hy+nB0OP+AViDA2WF4 18/RL70 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, 5 May 2017 10:40:03 +0200 Two single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/hfi1/sdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/sdma.c b/drivers/infiniband/hw/hfi1/sdma.c index bfd0d5187e9b..7611a88b86cf 100644 --- a/drivers/infiniband/hw/hfi1/sdma.c +++ b/drivers/infiniband/hw/hfi1/sdma.c @@ -1130,7 +1130,7 @@ void sdma_seqfile_dump_cpu_list(struct seq_file *s, continue; if (j > 0) - seq_puts(s, ","); + seq_putc(s, ','); seq_printf(s, " sdma%2d", rht_node->map[i]->sde[j]->this_idx); @@ -1138,7 +1138,7 @@ void sdma_seqfile_dump_cpu_list(struct seq_file *s, seq_puts(s, " ]"); } - seq_puts(s, "\n"); + seq_putc(s, '\n'); } /*