linux-stable/sound/soc/intel
Pierre-Louis Bossart aa4c06e02b
ASoC: Intel: sof_ssp_amp: remove 'set-but-not-used' warning
Clang warning:
>> sound/soc/intel/boards/sof_ssp_amp.c:97:6: warning: variable 'i'
   set but not used [-Wunused-but-set-variable]
           int i = 0;
               ^

The device counter is not used when the quirk is not set, which static
analysis cannot know. Move its initialization before the loop to
remove this warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220421163645.319686-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-21 18:25:20 +01:00
..
atom ASoC: intel: atom: Remove superfluous flush_scheduled_work() 2022-04-05 10:23:10 +01:00
avs ASoC: Intel: avs: Configure modules according to their type 2022-04-19 12:04:04 +01:00
boards ASoC: Intel: sof_ssp_amp: remove 'set-but-not-used' warning 2022-04-21 18:25:20 +01:00
catpt ASoC: Intel: catpt: Drop redundant enum constant 2022-04-05 10:23:22 +01:00
common ASoC: Intel: soc-acpi: correct device endpoints for max98373 2022-04-07 18:29:40 +01:00
keembay Merge remote-tracking branch 'asoc/for-5.13' into asoc-next 2021-04-23 19:01:02 +01:00
skylake flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
Kconfig ASoC: Intel: avs: Configure modules according to their type 2022-04-19 12:04:04 +01:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00