Skip to content

Commit

Permalink
selftests/alsa: make dump_config_tree() as void function
Browse files Browse the repository at this point in the history
dump_config_tree() is declared to return an int, but the compiler cannot
prove that it always returns any value at all. This leads to a clang
warning, when building via:

    make LLVM=1 -C tools/testing/selftests

Suggested-by: John Hubbard <[email protected]>
Cc: Mark Brown <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
perexg authored and tiwai committed May 8, 2024
1 parent 5e7488c commit b9112b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/alsa/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static struct card_cfg_data *conf_data_by_card(int card, bool msg)
return NULL;
}

static int dump_config_tree(snd_config_t *top)
static void dump_config_tree(snd_config_t *top)
{
snd_output_t *out;
int err;
Expand Down

0 comments on commit b9112b1

Please sign in to comment.