mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Optimize NULL check in snd_dlobj_cache_put()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e79990ac5d
commit
91de1212d0
1 changed files with 3 additions and 0 deletions
|
|
@ -275,6 +275,9 @@ int snd_dlobj_cache_put(void *func)
|
|||
struct dlobj_cache *c;
|
||||
unsigned int refcnt;
|
||||
|
||||
if (!func)
|
||||
return -ENOENT;
|
||||
|
||||
snd_dlobj_lock();
|
||||
list_for_each(p, &pcm_dlobj_list) {
|
||||
c = list_entry(p, struct dlobj_cache, list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue