提交 7094dc2b 编写于 作者: C Colin Ian King 提交者: Greg Kroah-Hartman

soundwire: intel: fix missing assignment to ret

Currently the return status ret is being checked but it has not been
updated since the previous check on ret. It appears that assignment of
ret from return status of the call to sdw_cdns_enable_interrupt was
accidentally ommited.  Fix this.

Detected by CoverityScan, CID#1463148 ("Logically dead code")

Fixes: 71bb8a1b ("soundwire: intel: Add Intel Master driver")
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Acked-by: NVinod Koul <vinod.koul@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0132af05
...@@ -295,7 +295,7 @@ static int intel_probe(struct platform_device *pdev) ...@@ -295,7 +295,7 @@ static int intel_probe(struct platform_device *pdev)
if (ret) if (ret)
goto err_init; goto err_init;
sdw_cdns_enable_interrupt(&sdw->cdns); ret = sdw_cdns_enable_interrupt(&sdw->cdns);
if (ret) if (ret)
goto err_init; goto err_init;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册