tree:
https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 3ccffada68ccec8f6de29adb489e7595f04b68b0
commit: 16efff7134364033e3cdc79d4d341e3b814974d7 [42/92] ASoC: Initial driver for TAS2555
Smart Amplifier
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
> sound/soc/codecs/tas2555.c:641:6: warning: Variable 'ret'
is reassigned a value before the old one has been used. [redundantAssignment]
ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG,
^
sound/soc/codecs/tas2555.c:636:6: note: Variable 'ret' is reassigned a value
before the old one has been used.
ret = regulator_bulk_enable(ARRAY_SIZE(tas2555->supplies),
^
sound/soc/codecs/tas2555.c:641:6: note: Variable 'ret' is reassigned a value
before the old one has been used.
ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG,
^
vim +/ret +641 sound/soc/codecs/tas2555.c
628
629 static int tas2555_codec_probe(struct snd_soc_component *component)
630 {
631 struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
632 int ret;
633
634 tas2555->component = component;
635
636 ret = regulator_bulk_enable(ARRAY_SIZE(tas2555->supplies),
637 tas2555->supplies);
638
639 gpiod_set_value(tas2555->nreset, 1);
640
641 ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG,
642 &tas2555->current_book);
643 if (ret < 0)
644 tas2555->current_book = 0;
645
646 dev_info(component->dev, "TAS2555 PGID: 0x%02x\n",
647 tas2555_read(component, TAS2555_REV_PGID_REG));
648
649 return tas2555_init(component);
650 }
651
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org