diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2019-07-29 09:14:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:46:41 +0100 |
commit | 183eebd4efa7904e6d9e95b8e482f2969f743f66 (patch) | |
tree | 40af86b103f774b779f1728bd079575ab5d8cfa1 /net/caif | |
parent | c877153dc53dc4abf4d85ce587735bb284fd7f28 (diff) |
ALSA: aoa: onyx: always initialize register read value
[ Upstream commit f474808acb3c4b30552d9c59b181244e0300d218 ]
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: f3d9478b2ce4 ("[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions