Home
last modified time | relevance | path

Searched hist:"3 da4b740" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/usb/
H A Dmixer.c3da4b740 Wed Jan 26 12:21:42 CST 2022 Tom Rix <trix@redhat.com> ALSA: usb-audio: initialize variables that could ignore errors

clang static analysis reports this representative issue
mixer.c:1548:35: warning: Assigned value is garbage or undefined
ucontrol->value.integer.value[0] = val;
^ ~~~

The filter_error() macro allows errors to be ignored.
If errors can be ignored, initialize variables
so garbage will not be used.

Fixes: 48cc42973509 ("ALSA: usb-audio: Filter error from connector kctl ops, too")
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220126182142.1184819-1-trix@redhat.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>