soundwire: intel: fix missing assignment to ret
authorColin Ian King <colin.king@canonical.com>
Mon, 8 Jan 2018 16:52:43 +0000 (22:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 16:53:21 +0000 (17:53 +0100)
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: 71bb8a1b059e ("soundwire: intel: Add Intel Master driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/intel.c

index 6a9177ea6eb9d29017cccc0c2b082ede4310ab77..86a7bd1fc91280f802b4d2984829bffd4653f708 100644 (file)
@@ -295,7 +295,7 @@ static int intel_probe(struct platform_device *pdev)
        if (ret)
                goto err_init;
 
-       sdw_cdns_enable_interrupt(&sdw->cdns);
+       ret = sdw_cdns_enable_interrupt(&sdw->cdns);
        if (ret)
                goto err_init;