[alsa-devel] [PATCH 2/4] ASoC: fsl: imx-spdif: Delete unneeded test before of_node_put
Nicolin Chen
nicoleotsuka at gmail.com
Tue Oct 7 20:42:03 CEST 2014
On Tue, Oct 07, 2014 at 03:29:56PM -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 at freescale.com>
Acked for two fsl ones.
Thank you again
Nicolin
> ---
> sound/soc/fsl/imx-spdif.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c
> index e1dc401..0c9068e 100644
> --- a/sound/soc/fsl/imx-spdif.c
> +++ b/sound/soc/fsl/imx-spdif.c
> @@ -74,8 +74,7 @@ static int imx_spdif_audio_probe(struct platform_device *pdev)
> platform_set_drvdata(pdev, data);
>
> end:
> - if (spdif_np)
> - of_node_put(spdif_np);
> + of_node_put(spdif_np);
>
> return ret;
> }
> --
> 1.9.1
>
More information about the Alsa-devel
mailing list