mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
ASoC: atmel_ssc_dai: Remove the unneeded result variable
Return the value from asoc_ssc_init() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Link: https://lore.kernel.org/r/20220823075335.209072-1-ye.xingchen@zte.com.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e8ee449bd7
commit
62bd431bac
@ -891,7 +891,6 @@ static int asoc_ssc_init(struct device *dev)
|
||||
int atmel_ssc_set_audio(int ssc_id)
|
||||
{
|
||||
struct ssc_device *ssc;
|
||||
int ret;
|
||||
|
||||
/* If we can grab the SSC briefly to parent the DAI device off it */
|
||||
ssc = ssc_request(ssc_id);
|
||||
@ -903,9 +902,7 @@ int atmel_ssc_set_audio(int ssc_id)
|
||||
ssc_info[ssc_id].ssc = ssc;
|
||||
}
|
||||
|
||||
ret = asoc_ssc_init(&ssc->pdev->dev);
|
||||
|
||||
return ret;
|
||||
return asoc_ssc_init(&ssc->pdev->dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(atmel_ssc_set_audio);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user