From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Stephen Boyd <sboyd@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>, linux-clk@vger.kernel.org
Subject: Re: [PATCH 1/5] clk: no need to check return value of debugfs_create functions
Date: Sat, 2 Jun 2018 08:54:30 +0200 [thread overview]
Message-ID: <20180602065430.GA32552@kroah.com> (raw)
In-Reply-To: <152790643550.225090.7686614109247734629@swboyd.mtv.corp.google.com>
On Fri, Jun 01, 2018 at 07:27:15PM -0700, Stephen Boyd wrote:
> Quoting Greg Kroah-Hartman (2018-05-29 09:08:00)
> > -
> > - d = debugfs_create_u32("clk_protect_count", 0444, core->dentry,
> > - &core->protect_count);
> > - if (!d)
> > - goto err_out;
> > -
> > - d = debugfs_create_u32("clk_notifier_count", 0444, core->dentry,
> > - &core->notifier_count);
> > - if (!d)
> > - goto err_out;
> > + if (!core || !pdentry)
> > + return;
> >
> > - if (core->num_parents > 1) {
> > - d = debugfs_create_file("clk_possible_parents", 0444,
> > - core->dentry, core, &possible_parents_fops);
> > - if (!d)
> > - goto err_out;
> > - }
> > + root = debugfs_create_dir(core->name, pdentry);
> > + core->dentry = root;
> >
> > - if (core->ops->debug_init) {
> > - ret = core->ops->debug_init(core->hw, core->dentry);
>
> This returns an int. We should go fix all the ops to return void now
> because nobody should care. I can pile that patch on top.
Thanks, I didn't think to do that.
> Anyway, applied to clk-next.
Wonderful, thanks for applying all of these.
greg k-h
prev parent reply other threads:[~2018-06-02 6:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-29 16:08 [PATCH 1/5] clk: no need to check return value of debugfs_create functions Greg Kroah-Hartman
2018-05-29 16:08 ` [PATCH 2/5] clk: bcm2835: " Greg Kroah-Hartman
2018-05-30 19:39 ` Eric Anholt
2018-06-02 2:27 ` Stephen Boyd
2018-05-29 16:08 ` [PATCH 3/5] clk: davinci: " Greg Kroah-Hartman
2018-05-30 19:03 ` David Lechner
2018-06-02 2:27 ` Stephen Boyd
2018-05-29 16:08 ` [PATCH 4/5] clk: tegra: " Greg Kroah-Hartman
2018-06-02 2:27 ` Stephen Boyd
2018-05-29 16:08 ` [PATCH 5/5] clk: remove clk_debugfs_add_file() Greg Kroah-Hartman
2018-06-02 2:27 ` Stephen Boyd
2018-06-02 2:27 ` [PATCH 1/5] clk: no need to check return value of debugfs_create functions Stephen Boyd
2018-06-02 6:54 ` Greg Kroah-Hartman [this message]
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=20180602065430.GA32552@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).