2021-07-28 12:45:48

by Tang Bin

[permalink] [raw]
Subject: [PATCH] ASoC: bcm: cygnus-pcm: Fix unused assignment about 'rc'

Delete unused initialized value of 'rc', because it will
be assigned by the function devm_request_irq().

Signed-off-by: Zhang Shengju <[email protected]>
Signed-off-by: Tang Bin <[email protected]>
---
sound/soc/bcm/cygnus-pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/bcm/cygnus-pcm.c b/sound/soc/bcm/cygnus-pcm.c
index 7ad07239f..039365f76 100644
--- a/sound/soc/bcm/cygnus-pcm.c
+++ b/sound/soc/bcm/cygnus-pcm.c
@@ -830,7 +830,7 @@ static struct snd_soc_component_driver cygnus_soc_platform = {
int cygnus_soc_platform_register(struct device *dev,
struct cygnus_audio *cygaud)
{
- int rc = 0;
+ int rc;

dev_dbg(dev, "%s Enter\n", __func__);

--
2.20.1.windows.1





2021-07-28 23:30:54

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] ASoC: bcm: cygnus-pcm: Fix unused assignment about 'rc'

On Wed, 28 Jul 2021 20:44:11 +0800, Tang Bin wrote:
> Delete unused initialized value of 'rc', because it will
> be assigned by the function devm_request_irq().

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: bcm: cygnus-pcm: Fix unused assignment about 'rc'
commit: 14db5499d583e0952606fbca3eb37a0f28008d30

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