ALSA: hal2: Improve a size determination in hal2_create()
commit044ace5e3fc95f8df1197b7eaeadee0b35dfcef5
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 11 Nov 2017 17:34:04 +0000 (11 18:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Nov 2017 08:28:41 +0000 (29 09:28 +0100)
treed347de054453eb6eb522a0b75df02d9b292f123d
parenta4a1b737032daf42e1e2ccd70bfceca56464ccac
ALSA: hal2: Improve a size determination in hal2_create()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/mips/hal2.c