[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200221101112.3104-1-vulab@iscas.ac.cn>
Date: Fri, 21 Feb 2020 18:11:12 +0800
From: Xu Wang <vulab@...as.ac.cn>
To: perex@...ex.cz, tiwai@...e.com, alsa-devel@...a-project.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] Intel: Skylake: Fix inconsistent IS_ERR and PTR_ERR
PTR_ERR should access the value just tested by IS_ERR.
In skl_clk_dev_probe(),it is inconsistent.
Signed-off-by: Xu Wang <vulab@...as.ac.cn>
---
sound/soc/intel/skylake/skl-ssp-clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/skylake/skl-ssp-clk.c b/sound/soc/intel/skylake/skl-ssp-clk.c
index 1c0e5226cb5b..f7aae10b629b 100644
--- a/sound/soc/intel/skylake/skl-ssp-clk.c
+++ b/sound/soc/intel/skylake/skl-ssp-clk.c
@@ -384,7 +384,7 @@ static int skl_clk_dev_probe(struct platform_device *pdev)
&clks[i], clk_pdata, i);
if (IS_ERR(data->clk[data->avail_clk_cnt])) {
- ret = PTR_ERR(data->clk[data->avail_clk_cnt++]);
+ ret = PTR_ERR(data->clk[data->avail_clk_cnt]);
goto err_unreg_skl_clk;
}
}
--
2.17.1
Powered by blists - more mailing lists