diff options
author | Uwe Kleine-König <[email protected]> | 2023-02-07 20:19:05 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2023-02-08 13:38:28 +0100 |
commit | 663f922fd7a9e9342dca512db339c7fb2b59b8e6 (patch) | |
tree | 11e8d187f7bf79dd31fc9004c70e6846607610af /tools/perf/scripts/python | |
parent | 69218b59be20689cc62ee87cd2890c58c41bae15 (diff) |
ALSA: core: Make snd_card_disconnect() return void
All callers from other files ignore the return value of this function.
And it can only ever return a non-zero value if the parameter card is NULL.
Move the check for card being NULL into snd_card_free_when_closed() to keep
the previous behaviour. Note this isn't necessary for
snd_card_disconnect_sync() because if card was NULL in there the dereference
of card for dev_err() would oops the kernel. Replace this by an oops
triggered by the dereference of card for spin_lock_irq().
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Jaroslav Kysela <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions