soundwire: Fix typo in return value check of sdw_read()
Fix the typo, 'status' should be instead of 'status2'.
Fixes: b0a9c37b01
("soundwire: Add slave status handling")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7094dc2b53
commit
80cd8f0175
1 changed files with 5 additions and 5 deletions
|
@ -671,8 +671,8 @@ static int sdw_handle_dp0_interrupt(struct sdw_slave *slave, u8 *slave_status)
|
||||||
status2 = sdw_read(slave, SDW_DP0_INT);
|
status2 = sdw_read(slave, SDW_DP0_INT);
|
||||||
if (status2 < 0) {
|
if (status2 < 0) {
|
||||||
dev_err(slave->bus->dev,
|
dev_err(slave->bus->dev,
|
||||||
"SDW_DP0_INT read failed:%d", status);
|
"SDW_DP0_INT read failed:%d", status2);
|
||||||
return status;
|
return status2;
|
||||||
}
|
}
|
||||||
status &= status2;
|
status &= status2;
|
||||||
|
|
||||||
|
@ -741,10 +741,10 @@ static int sdw_handle_port_interrupt(struct sdw_slave *slave,
|
||||||
|
|
||||||
/* Read DPN interrupt again */
|
/* Read DPN interrupt again */
|
||||||
status2 = sdw_read(slave, addr);
|
status2 = sdw_read(slave, addr);
|
||||||
if (status < 0) {
|
if (status2 < 0) {
|
||||||
dev_err(slave->bus->dev,
|
dev_err(slave->bus->dev,
|
||||||
"SDW_DPN_INT read failed:%d", status);
|
"SDW_DPN_INT read failed:%d", status2);
|
||||||
return status;
|
return status2;
|
||||||
}
|
}
|
||||||
status &= status2;
|
status &= status2;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue