]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: aoa: onyx: always initialize register read value
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 29 Jul 2019 07:14:22 +0000 (09:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Jul 2019 07:21:39 +0000 (09:21 +0200)
commit4de6c3a6d9a9228b07159168b9949a55efb3909d
treec9870151a5994218f507d567736ad48d0fdf4a95
parente34e1783a6886aad8bb283455166c05e90a952d1
ALSA: aoa: onyx: always initialize register read value

A lot of places in the driver use onyx_read_register() without
checking the return value, and it's been working OK for ~10 years
or so, so probably never fails ... Rather than trying to check the
return value everywhere, which would be relatively intrusive, at
least make sure we don't use an uninitialized value.

Fixes: 3f4ff7c5f2ad ("[ALSA] snd-aoa: add snd-aoa")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/codecs/onyx.c