Message ID | 20240906100523.2142-1-tangbin@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1798acef8f50af59abaa0ff4775e7a79a68db671 |
Headers | show |
Series | ASoC: loongson: remove redundant variable assignments | expand |
On Fri, 06 Sep 2024 18:05:23 +0800, Tang Bin wrote: > In the function loongson_asoc_card_probe, it is simpler > to return the value of function devm_snd_soc_register_card > directly. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: loongson: remove redundant variable assignments commit: 1798acef8f50af59abaa0ff4775e7a79a68db671 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/loongson/loongson_card.c b/sound/soc/loongson/loongson_card.c index fae5e9312..98a03ef82 100644 --- a/sound/soc/loongson/loongson_card.c +++ b/sound/soc/loongson/loongson_card.c @@ -192,9 +192,7 @@ static int loongson_asoc_card_probe(struct platform_device *pdev) if (ret < 0) return ret; - ret = devm_snd_soc_register_card(&pdev->dev, card); - - return ret; + return devm_snd_soc_register_card(&pdev->dev, card); } static const struct of_device_id loongson_asoc_dt_ids[] = {
In the function loongson_asoc_card_probe, it is simpler to return the value of function devm_snd_soc_register_card directly. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> --- sound/soc/loongson/loongson_card.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)