Skip to content

Commit

Permalink
fixup! ASoC: SOF: ipc4-topology: support NHLT device type
Browse files Browse the repository at this point in the history
This commit f8d998e ("ASoC: SOF: ipc4-topology: support NHLT
device type") checks incorrect return variable.

Signed-off-by: Brent Lu <brent.lu@intel.com>
  • Loading branch information
brentlu authored and plbossart committed Nov 17, 2023
1 parent 8649500 commit cb90d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sof/ipc4-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,8 +1368,8 @@ static int snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_s
*/
dev_type = intel_nhlt_ssp_device_type(sdev->dev, ipc4_data->nhlt,
dai_index);
if (ret < 0)
return ret;
if (dev_type < 0)
return dev_type;
break;
default:
return 0;
Expand Down

0 comments on commit cb90d73

Please sign in to comment.