]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: Intel: glk_rt5682_max98357a: removed unused variables
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 13 Jan 2020 21:04:14 +0000 (15:04 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2020 15:27:47 +0000 (15:27 +0000)
Fix GCC warning with W=1

sound/soc/intel/boards/glk_rt5682_max98357a.c:256:48: warning:
‘constraints_channels’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200113210428.27457-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/glk_rt5682_max98357a.c

index 2bfc4365d9571f4b9ff722bdca68042b89a696a2..4a6d117ea7af766d5dbcf1fb3132a6a3cb5ae507 100644 (file)
@@ -249,16 +249,6 @@ static const struct snd_pcm_hw_constraint_list constraints_rates = {
        .mask = 0,
 };
 
-static const unsigned int channels[] = {
-       DUAL_CHANNEL,
-};
-
-static const struct snd_pcm_hw_constraint_list constraints_channels = {
-       .count = ARRAY_SIZE(channels),
-       .list = channels,
-       .mask = 0,
-};
-
 static unsigned int channels_quad[] = {
        QUAD_CHANNEL,
 };