mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: SOF: Intel: remove conditional return with no effect
Both branches of the check return the same value, so the check has no effect. Remove it and return the value directly. This is the result of running the Coccinelle script from scripts/coccinelle/misc/cond_return_no_effect.cocci. Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Link: https://patch.msgid.link/20260725160344.916838-5-ekffu200098@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
cdb8b41357
commit
619446b87c
|
|
@ -1114,11 +1114,7 @@ static int hda_dsp_s5_quirk(struct snd_sof_dev *sdev)
|
|||
usleep_range(500, 1000);
|
||||
|
||||
/* Restore state for shutdown, back to reset */
|
||||
ret = hda_dsp_ctrl_link_reset(sdev, true);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
return hda_dsp_ctrl_link_reset(sdev, true);
|
||||
}
|
||||
|
||||
int hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user