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>
This commit is contained in:
parent
7928b2cbe5
commit
0338753a57
@ -1281,7 +1281,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
struct device_node *child_node;
|
struct device_node *child_node;
|
||||||
struct resource *res = pdev->resource;
|
struct resource *res;
|
||||||
struct cygnus_audio *cygaud;
|
struct cygnus_audio *cygaud;
|
||||||
int err = -EINVAL;
|
int err = -EINVAL;
|
||||||
int node_count;
|
int node_count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user