From: David Miller <davem@davemloft.net>
To: u.kleine-koenig@pengutronix.de
Cc: fugang.duan@nxp.com, kernel@pengutronix.de, netdev@vger.kernel.org
Subject: Re: [PATCH] net: fec: drop check for clk==NULL before calling clk_*
Date: Thu, 20 Oct 2016 14:20:45 -0400 (EDT) [thread overview]
Message-ID: <20161020.142045.1040137290674881888.davem@davemloft.net> (raw)
In-Reply-To: <20161020082827.598-1-u.kleine-koenig@pengutronix.de>
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date: Thu, 20 Oct 2016 10:28:27 +0200
> clk_prepare, clk_enable and their counterparts (at least the common clk
> ones, but also most others) do check for the clk being NULL anyhow (and
> return 0 then), so there is no gain when the caller checks, too.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Applied to net-next.
prev parent reply other threads:[~2016-10-20 18:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-20 8:28 [PATCH] net: fec: drop check for clk==NULL before calling clk_* Uwe Kleine-König
2016-10-20 8:56 ` Andy Duan
2016-10-20 18:20 ` David Miller [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=20161020.142045.1040137290674881888.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=fugang.duan@nxp.com \
--cc=kernel@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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