Messages in this thread Patch in this message | | | From | Xu Wang <> | Subject | [PATCH] Intel: Skylake: Fix inconsistent IS_ERR and PTR_ERR | Date | Fri, 21 Feb 2020 18:11:12 +0800 |
| |
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@iscas.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
| |