diff options
author | Hui Wang <[email protected]> | 2020-10-22 11:02:21 +0800 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2020-10-22 08:17:02 +0200 |
commit | 033e4040d453f1f7111e5957a54f3019eb089cc6 (patch) | |
tree | 9e0d2381a85ffae964ee1b506f880702afec6809 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7da4c510abff8ad47eb2d7cc9a97def5a411947f (diff) |
ALSA: hda - Fix the return value if cb func is already registered
If the cb function is already registered, should return the pointer
of the structure hda_jack_callback which contains this cb func, but
instead it returns the NULL.
Now fix it by replacing func_is_already_in_callback_list() with
find_callback_from_list().
Fixes: f4794c6064a8 ("ALSA: hda - Don't register a cb func if it is registered already")
Reported-and-suggested-by: Dan Carpenter <[email protected]>
Cc: <[email protected]>
Signed-off-by: Hui Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions