aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/fs/tracing_path.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2022-10-27 06:52:33 +0000
committerTakashi Iwai <[email protected]>2022-10-27 06:53:08 +0000
commitf1fae475f10a26b7e34da4ff2e2f19b7feb3548e (patch)
tree03630b26db0d75da26dbee6b3a75cb35cd1dfac3 /tools/lib/api/fs/tracing_path.c
parentALSA: Use del_timer_sync() before freeing timer (diff)
downloadkernel-f1fae475f10a26b7e34da4ff2e2f19b7feb3548e.tar.gz
kernel-f1fae475f10a26b7e34da4ff2e2f19b7feb3548e.zip
ALSA: aoa: Fix I2S device accounting
i2sbus_add_dev() is supposed to return the number of probed devices, i.e. either 1 or 0. However, i2sbus_add_dev() has one error handling that returns -ENODEV; this will screw up the accumulation number counted in the caller, i2sbus_probe(). Fix the return value to 0 and add the comment for better understanding for readers. Fixes: f3d9478b2ce4 ("[ALSA] snd-aoa: add snd-aoa") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions