ASoC: bcm: cygnus_ssp: remove useless initialization
Cppcheck warning:
sound/soc/bcm/cygnus-ssp.c:1364:6: style: Redundant initialization for
'err'. The initialized value is overwritten before it is
read. [redundantInitialization]
err = devm_snd_soc_register_component(dev, &cygnus_ssp_component,
^
sound/soc/bcm/cygnus-ssp.c:1313:10: note: err is initialized
int err = -EINVAL;
^
sound/soc/bcm/cygnus-ssp.c:1364:6: note: err is overwritten
err = devm_snd_soc_register_component(dev, &cygnus_ssp_component,
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210326215927.936377-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6692dc07fa
commit
ce36242046
1 changed files with 1 additions and 1 deletions
|
|
@ -1310,7 +1310,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
|
|||
struct device_node *child_node;
|
||||
struct resource *res;
|
||||
struct cygnus_audio *cygaud;
|
||||
int err = -EINVAL;
|
||||
int err;
|
||||
int node_count;
|
||||
int active_port_count;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue