aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-08 22:22:43 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 17:53:21 +0100
commit7094dc2b537b0eeb08fb7a35d528be35a2cc5e59 (patch)
tree6421a0c7a31530a2116937b1bfbdf6b2df19c220 /drivers/soundwire
parentsoundwire: fix sign extension when shifting buf[2] 24 places (diff)
downloadlinux-dev-7094dc2b537b0eeb08fb7a35d528be35a2cc5e59.tar.xz
linux-dev-7094dc2b537b0eeb08fb7a35d528be35a2cc5e59.zip
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: 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>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 6a9177ea6eb9..86a7bd1fc912 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -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;