OSDN Git Service

ASoC: bcm: cygnus-pcm: Fix unused assignment about 'rc'
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 28 Jul 2021 12:44:11 +0000 (20:44 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jul 2021 15:39:28 +0000 (16:39 +0100)
Delete unused initialized value of 'rc', because it will
be assigned by the function devm_request_irq().

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210728124411.3168-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/bcm/cygnus-pcm.c

index 56b71b9..3abeaf0 100644 (file)
@@ -729,7 +729,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__);