ASoC: soc-dapm: cleanup cppcheck warning at dapm_seq_check_event()
This patch cleanups below cppcheck warning. sound/soc/soc-dapm.c:1531:13: style: The scope of the variable 'ret' can be reduced. [variableScope] int power, ret; ^ Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87r1f8u24n.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
5c52e48fb1
Коммит
65f7316d18
|
@ -1528,7 +1528,7 @@ static void dapm_seq_check_event(struct snd_soc_card *card,
|
||||||
struct snd_soc_dapm_widget *w, int event)
|
struct snd_soc_dapm_widget *w, int event)
|
||||||
{
|
{
|
||||||
const char *ev_name;
|
const char *ev_name;
|
||||||
int power, ret;
|
int power;
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case SND_SOC_DAPM_PRE_PMU:
|
case SND_SOC_DAPM_PRE_PMU:
|
||||||
|
@ -1564,6 +1564,8 @@ static void dapm_seq_check_event(struct snd_soc_card *card,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (w->event && (w->event_flags & event)) {
|
if (w->event && (w->event_flags & event)) {
|
||||||
|
int ret;
|
||||||
|
|
||||||
pop_dbg(w->dapm->dev, card->pop_time, "pop test : %s %s\n",
|
pop_dbg(w->dapm->dev, card->pop_time, "pop test : %s %s\n",
|
||||||
w->name, ev_name);
|
w->name, ev_name);
|
||||||
soc_dapm_async_complete(w->dapm);
|
soc_dapm_async_complete(w->dapm);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче