ALSA: hda: Use struct_size()
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 May 2019 09:46:49 +0000 (11:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 May 2019 09:46:49 +0000 (11:46 +0200)
commita2d4560f0be9a48cd342992fbec0688ea05d564b
treeb59bf25fce1cbee0f0b976cc2a0eb766ab6a566d
parent65be9580885e4c14af1448b5bac95517c52a7ad3
ALSA: hda: Use struct_size()

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

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c