From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Fabio Estevam <fabio.estevam@freescale.com>
Cc: alsa-devel@alsa-project.org, broonie@kernel.org
Subject: Re: [PATCH 1/2] ASoC: fsl: imx-wm8962: Delete unneeded test before of_node_put
Date: Tue, 7 Oct 2014 11:18:10 -0700 [thread overview]
Message-ID: <20141007181810.GC2796@Alpha> (raw)
In-Reply-To: <1412705605-13646-1-git-send-email-fabio.estevam@freescale.com>
On Tue, Oct 07, 2014 at 03:13:24PM -0300, Fabio Estevam wrote:
> of_node_put() supports NULL as its argument, so the initial test is not
> necessary.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
For both two patches:
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Thank you
Nic
> ---
> sound/soc/fsl/imx-wm8962.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c
> index 3a3d17c..48179ff 100644
> --- a/sound/soc/fsl/imx-wm8962.c
> +++ b/sound/soc/fsl/imx-wm8962.c
> @@ -281,10 +281,8 @@ static int imx_wm8962_probe(struct platform_device *pdev)
> clk_fail:
> clk_disable_unprepare(data->codec_clk);
> fail:
> - if (ssi_np)
> - of_node_put(ssi_np);
> - if (codec_np)
> - of_node_put(codec_np);
> + of_node_put(ssi_np);
> + of_node_put(codec_np);
>
> return ret;
> }
> --
> 1.9.1
>
prev parent reply other threads:[~2014-10-07 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 18:13 [PATCH 1/2] ASoC: fsl: imx-wm8962: Delete unneeded test before of_node_put Fabio Estevam
2014-10-07 18:13 ` [PATCH 2/2] ASoC: fsl: imx-sgtl5000: " Fabio Estevam
2014-10-07 18:17 ` [PATCH 1/2] ASoC: fsl: imx-wm8962: " Mark Brown
2014-10-07 18:18 ` Nicolin Chen [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=20141007181810.GC2796@Alpha \
--to=nicoleotsuka@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@freescale.com \
/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