Skip to content

Commit 30887e1

Browse files
plbossartkv2019i
authored andcommitted
soundwire: bus: align with upstream
Address minor comment from Vinod Koul Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 0ce0ab9 commit 30887e1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/soundwire/bus.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,13 +1073,10 @@ static int sdw_initialize_slave(struct sdw_slave *slave)
10731073
val |= SDW_DP0_INT_PORT_READY | SDW_DP0_INT_BRA_FAILURE;
10741074

10751075
ret = sdw_update(slave, SDW_DP0_INTMASK, val, val);
1076-
if (ret < 0) {
1076+
if (ret < 0)
10771077
dev_err(slave->bus->dev,
10781078
"SDW_DP0_INTMASK read failed:%d\n", ret);
1079-
return ret;
1080-
}
1081-
1082-
return 0;
1079+
return ret;
10831080
}
10841081

10851082
static int sdw_handle_dp0_interrupt(struct sdw_slave *slave, u8 *slave_status)

0 commit comments

Comments
 (0)