diff options
| author | Ruliang Lin <[email protected]> | 2023-05-04 06:50:53 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2023-05-04 07:50:11 +0000 |
| commit | 0d727e1856ef22dd9337199430258cb64cbbc658 (patch) | |
| tree | 5f19147e2631b22013ddcde1796a4f4b8fb3e1c0 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ALSA: usb-audio: Add quirk for Pioneer DDJ-800 (diff) | |
| download | kernel-0d727e1856ef22dd9337199430258cb64cbbc658.tar.gz kernel-0d727e1856ef22dd9337199430258cb64cbbc658.zip | |
ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init`
Smatch complains that:
snd_usb_caiaq_input_init() warn: missing error code 'ret'
This patch adds a new case to handle the situation where the
device does not support any input methods in the
`snd_usb_caiaq_input_init` function. It returns an `-EINVAL` error code
to indicate that no input methods are supported on the device.
Fixes: 523f1dce3743 ("[ALSA] Add Native Instrument usb audio device support")
Signed-off-by: Ruliang Lin <[email protected]>
Reviewed-by: Dongliang Mu <[email protected]>
Acked-by: Daniel Mack <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
