Message ID | 20241018090714.399076-2-d.dulov@aladdin.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | soundwire: cadence: Fix error check in cdns_xfer_msg() | expand |
diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c index d3e9cd3faadf..2492250ad1bd 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -692,7 +692,7 @@ cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg) for (i = 0; i < msg->len / CDNS_MCP_CMD_LEN; i++) { ret = _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN, CDNS_MCP_CMD_LEN, false); - if (ret < 0) + if (ret != SDW_CMD_OK) goto exit; }