ASoC: cygnus: remove redundant assignment to pointer 'res'
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Mar 2018 13:32:49 +0000 (14:32 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 Mar 2018 15:11:24 +0000 (15:11 +0000)
The pointer res is being initialized with a value that is never read
and re-assigned immediately after, hence the initialization is redundant
and can be removed.

Cleans up clang warning:
sound/soc/bcm/cygnus-ssp.c:1284:19: warning: Value stored to 'res'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/bcm/cygnus-ssp.c

index abafadc0b534b4fe7d87a02af3d92e5762227d21..b733f144635308a0e87b78e2ab3774b1d4b828f0 100644 (file)
@@ -1281,7 +1281,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
        struct device_node *child_node;
-       struct resource *res = pdev->resource;
+       struct resource *res;
        struct cygnus_audio *cygaud;
        int err = -EINVAL;
        int node_count;