]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: remove useless assignment in .info callback of PCM chmap element
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Dec 2019 13:13:51 +0000 (22:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 14 Dec 2019 15:39:05 +0000 (16:39 +0100)
commitec427ae3bda02c2ec0f2318bbcff569340f1a724
treed463f12051c6d04d63d0c3755e89128b76c97fa8
parentf482e0fda8362c58c62fc594002bc1d02a5069f4
ALSA: control: remove useless assignment in .info callback of PCM chmap element

Control elements for PCM chmap return information to userspace abount
the maximum number of available PCM channels as the number of values
in the element.

In current implementation the number is once initialized to zero, then
assigned to. This is useless and this commit fixes it.

Fixes: 470cbdc6c4e5 ("ALSA: PCM: channel mapping API implementation")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191214131351.28950-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c