OSDN Git Service

ASoC: mxs-saif: Fix unused assignment
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 29 Apr 2020 09:38:23 +0000 (17:38 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Apr 2020 13:23:19 +0000 (14:23 +0100)
Delete unused initialized value, because 'ret' will be assigined
by the function of_alias_get_id().

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

index 64c095b..07f8cf9 100644 (file)
@@ -733,7 +733,7 @@ static int mxs_saif_probe(struct platform_device *pdev)
 {
        struct device_node *np = pdev->dev.of_node;
        struct mxs_saif *saif;
-       int irq, ret = 0;
+       int irq, ret;
        struct device_node *master;
 
        saif = devm_kzalloc(&pdev->dev, sizeof(*saif), GFP_KERNEL);