Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: Intel: sof_maxim_common: check return value #4695

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

bardliao
Copy link
Collaborator

@bardliao bardliao commented Nov 9, 2023

snd_soc_dai_set_tdm_slot() could return error, and add an else to clarify that if (!strcmp(codec_dai->component->name, MAX_98373_DEV0_NAME)) and if (!strcmp(codec_dai->component->name, MAX_98373_DEV1_NAME)) can't be true at the same time.

brentlu
brentlu previously approved these changes Nov 9, 2023
aiChaoSONG
aiChaoSONG previously approved these changes Nov 9, 2023
@plbossart
Copy link
Member

ERROR: else should follow close brace '}'
#24: FILE: sound/soc/intel/boards/sof_maxim_common.c:71:
 		}
+		else if (!strcmp(codec_dai->component->name, MAX_98373_DEV1_NAME)) {

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkpatch style

@bardliao bardliao dismissed stale reviews from aiChaoSONG and brentlu via a97f67a November 10, 2023 05:09
@bardliao
Copy link
Collaborator Author

checkpatch style

Fixed

@bardliao bardliao force-pushed the sof_maxim_common branch 2 times, most recently from ea9c131 to 016734d Compare November 10, 2023 06:22
if (!strcmp(codec_dai->component->name, MAX_98373_DEV0_NAME)) and
if (!strcmp(codec_dai->component->name, MAX_98373_DEV1_NAME)) can't be
true at the same time. Add an else to clarify it.

Signed-off-by: Bard Liao <[email protected]>
snd_soc_dai_set_tdm_slot() could return error.

Signed-off-by: Bard Liao <[email protected]>
@plbossart plbossart merged commit 453fdbb into thesofproject:topic/sof-dev Nov 10, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants