diff options
author | Tom Rix <[email protected]> | 2022-01-26 10:21:42 -0800 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-01-27 14:41:16 +0100 |
commit | 3da4b7403db87d39bc2613cfd790de1de99a70ab (patch) | |
tree | d12b7049dedf9cb82c8664ebae646da8f05d3c3d /lib/mpi/mpi-bit.c | |
parent | 549f8ffc7b2f7561bea7f90930b6c5104318e87b (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions