diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-03-08 08:32:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-08 10:11:24 -0500 |
commit | 0338753a57aaf331cb7016bbfdba6086bf93149c (patch) | |
tree | d40d34d07c8d42249ec2f90b9f43c21ac86d0410 | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) |
ASoC: cygnus: remove redundant assignment to pointer 'res'
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>
-rw-r--r-- | sound/soc/bcm/cygnus-ssp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c index abafadc0b534..b733f1446353 100644 --- a/sound/soc/bcm/cygnus-ssp.c +++ b/sound/soc/bcm/cygnus-ssp.c | |||
@@ -1281,7 +1281,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev) | |||
1281 | { | 1281 | { |
1282 | struct device *dev = &pdev->dev; | 1282 | struct device *dev = &pdev->dev; |
1283 | struct device_node *child_node; | 1283 | struct device_node *child_node; |
1284 | struct resource *res = pdev->resource; | 1284 | struct resource *res; |
1285 | struct cygnus_audio *cygaud; | 1285 | struct cygnus_audio *cygaud; |
1286 | int err = -EINVAL; | 1286 | int err = -EINVAL; |
1287 | int node_count; | 1287 | int node_count; |