[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1515430364-12079-2-git-send-email-vinod.koul@intel.com>
Date: Mon, 8 Jan 2018 22:22:43 +0530
From: Vinod Koul <vinod.koul@...el.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Sanyog Kale <sanyog.r.kale@...el.com>,
Colin Ian King <colin.king@...onical.com>
Subject: [PATCH 2/3] soundwire: intel: fix missing assignment to ret
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
Acked-by: Vinod Koul <vinod.koul@...el.com>
---
drivers/soundwire/intel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.7.4
Powered by blists - more mailing lists