diff options
author | 2023-08-08 14:20:03 +0100 | |
---|---|---|
committer | 2023-08-08 18:57:16 +0100 | |
commit | 3003ea9cb7bd6399ca9962e0b3dd0ac58b151c2e (patch) | |
tree | 7bfa1695f719ed5e4228f216948f36580ed02a5c /sound/soc/intel | |
parent | ASoC: intel: sof_sdw: Printk's should end with a newline (diff) | |
download | linux-3003ea9cb7bd6399ca9962e0b3dd0ac58b151c2e.tar.gz linux-3003ea9cb7bd6399ca9962e0b3dd0ac58b151c2e.tar.bz2 linux-3003ea9cb7bd6399ca9962e0b3dd0ac58b151c2e.zip |
ASoC: intel: sof_sdw: Remove duplicate NULL check on adr_link
get_dailink_info already checked if the adr_link pointer was NULL so
there is no need to recheck later in sof_card_dai_links_create.
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230808132013.889419-2-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 8f3329dcf706..89614d08d091 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -1632,10 +1632,6 @@ static int sof_card_dai_links_create(struct snd_soc_card *card) if (!sdw_be_num) goto SSP; - adr_link = mach_params->links; - if (!adr_link) - return -EINVAL; - for (i = 0; i < SDW_MAX_LINKS; i++) sdw_pin_index[i] = SDW_INTEL_BIDIR_PDI_BASE; |