public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation•org>
To: dan.j.williams@intel•com, vkoul@kernel•org
Cc: dmaengine@vger•kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
	Linus Walleij <linus.walleij@linaro•org>,
	linux-kernel@vger•kernel.org,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH 3/6] dma: coh901318: no need to cast away call to debugfs_create_file()
Date: Wed, 12 Jun 2019 14:25:54 +0200	[thread overview]
Message-ID: <20190612122557.24158-3-gregkh@linuxfoundation.org> (raw)
In-Reply-To: <20190612122557.24158-1-gregkh@linuxfoundation.org>

No need to check the return value of debugfs_create_file(), so no need
to provide a fake "cast away" of the return value either.

Cc: Linus Walleij <linus.walleij@linaro•org>
Cc: Vinod Koul <vkoul@kernel•org>
Cc: Dan Williams <dan.j.williams@intel•com>
Cc: linux-arm-kernel@lists•infradead.org
Cc: dmaengine@vger•kernel.org
Cc: linux-kernel@vger•kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation•org>
---
 drivers/dma/coh901318.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c
index 547786ac342b..e51d836afcc7 100644
--- a/drivers/dma/coh901318.c
+++ b/drivers/dma/coh901318.c
@@ -1378,10 +1378,8 @@ static int __init init_coh901318_debugfs(void)
 
 	dma_dentry = debugfs_create_dir("dma", NULL);
 
-	(void) debugfs_create_file("status",
-				   S_IFREG | S_IRUGO,
-				   dma_dentry, NULL,
-				   &coh901318_debugfs_status_operations);
+	debugfs_create_file("status", S_IFREG | S_IRUGO, dma_dentry, NULL,
+			    &coh901318_debugfs_status_operations);
 	return 0;
 }
 
-- 
2.22.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

       reply	other threads:[~2019-06-12 12:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190612122557.24158-1-gregkh@linuxfoundation.org>
2019-06-12 12:25 ` Greg Kroah-Hartman [this message]
2019-06-12 12:42   ` [PATCH 3/6] dma: coh901318: no need to cast away call to debugfs_create_file() Linus Walleij
2019-06-12 12:25 ` [PATCH 4/6] dma: pxa_dma: no need to check return value of debugfs_create functions Greg Kroah-Hartman
2019-08-10 19:27   ` Robert Jarzmik
2019-08-11  7:03     ` Greg Kroah-Hartman
2019-08-13 21:21       ` Robert Jarzmik
2019-06-12 12:25 ` [PATCH 6/6] dma: qcom: hidma: " Greg Kroah-Hartman
2019-06-12 15:24   ` Sinan Kaya
2019-06-12 15:39     ` Greg Kroah-Hartman
2019-06-12 16:17       ` Sinan Kaya
2019-06-12 16:47         ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190612122557.24158-3-gregkh@linuxfoundation.org \
    --to=gregkh@linuxfoundation$(echo .)org \
    --cc=dan.j.williams@intel$(echo .)com \
    --cc=dmaengine@vger$(echo .)kernel.org \
    --cc=linus.walleij@linaro$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=vkoul@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox