From: Dan Carpenter Date: Fri, 8 Nov 2013 09:54:44 +0000 (+0300) Subject: ASoC: fsl: imx-wm8962: remove an unneeded check X-Git-Tag: v4.0~2852^2~33^2~31^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea8e5e591801b0d0c25dc0a0f1f5b508be7004cb;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: fsl: imx-wm8962: remove an unneeded check "data->codec_clk" can't be an ERR_PTR here so I have removed the superflous check. Signed-off-by: Dan Carpenter Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index 8e5b2c6..f7be44a 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c @@ -279,8 +279,7 @@ static int imx_wm8962_probe(struct platform_device *pdev) return 0; clk_fail: - if (!IS_ERR(data->codec_clk)) - clk_disable_unprepare(data->codec_clk); + clk_disable_unprepare(data->codec_clk); fail: if (ssi_np) of_node_put(ssi_np);