mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]>
Acked-by: Pierre-Louis Bossart <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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);
|
||||
if (status2 < 0) {
|
||||
dev_err(slave->bus->dev,
|
||||
"SDW_DP0_INT read failed:%d", status);
|
||||
return status;
|
||||
"SDW_DP0_INT read failed:%d", status2);
|
||||
return status2;
|
||||
}
|
||||
status &= status2;
|
||||
|
||||
|
|
@ -741,10 +741,10 @@ static int sdw_handle_port_interrupt(struct sdw_slave *slave,
|
|||
|
||||
/* Read DPN interrupt again */
|
||||
status2 = sdw_read(slave, addr);
|
||||
if (status < 0) {
|
||||
if (status2 < 0) {
|
||||
dev_err(slave->bus->dev,
|
||||
"SDW_DPN_INT read failed:%d", status);
|
||||
return status;
|
||||
"SDW_DPN_INT read failed:%d", status2);
|
||||
return status2;
|
||||
}
|
||||
status &= status2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue