Commit 80cd8f01 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

soundwire: Fix typo in return value check of sdw_read()

Fix the typo, 'status' should be instead of 'status2'.

Fixes: b0a9c37b ("soundwire: Add slave status handling")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7094dc2b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment