projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed29a0a
)
soundwire: bus: provide correct return value on error
author
Bard Liao
<yung-chuan.liao@linux.intel.com>
Thu, 27 Feb 2020 22:09:49 +0000
(16:09 -0600)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 3 Mar 2020 04:58:46 +0000
(10:28 +0530)
It seems to be a typo. It makes more sense to return the return value
of sdw_update() instead of the value we want to update.
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20200227220949.4013-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
patch
|
blob
|
history
diff --git
a/drivers/soundwire/bus.c
b/drivers/soundwire/bus.c
index
ccaa590
..
488c3c9
100644
(file)
--- a/
drivers/soundwire/bus.c
+++ b/
drivers/soundwire/bus.c
@@
-1056,13
+1056,10
@@
static int sdw_initialize_slave(struct sdw_slave *slave)
val |= SDW_DP0_INT_PORT_READY | SDW_DP0_INT_BRA_FAILURE;
ret = sdw_update(slave, SDW_DP0_INTMASK, val, val);
- if (ret < 0)
{
+ if (ret < 0)
dev_err(slave->bus->dev,
"SDW_DP0_INTMASK read failed:%d\n", ret);
- return val;
- }
-
- return 0;
+ return ret;
}
static int sdw_handle_dp0_interrupt(struct sdw_slave *slave, u8 *slave_status)