]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Use struct_size()
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 May 2019 09:44:44 +0000 (11:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 May 2019 09:44:44 +0000 (11:44 +0200)
commit6e0c6823f914bff393ed82fc9d681f0eae207ace
treeac4462b112956c79e281af721da45555869f2157
parent21b13cc4251c8bbb116314b7d5815f12255e6cb2
ALSA: control: Use struct_size()

For code simplification and safety, use struct_size() macro for
calculating the snd_kcontrol object size with the variable array.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c