mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 13:14:14 +08:00
audio: Remove unwanted code from manager
Here the variable adp never be NULL, so no need to check it against NULL.
This commit is contained in:
parent
aecbb97c6a
commit
732b5eb55f
@ -852,8 +852,6 @@ static struct audio_adapter *audio_adapter_get(struct btd_adapter *adapter)
|
||||
adp = find_adapter(adapters, adapter);
|
||||
if (!adp) {
|
||||
adp = audio_adapter_create(adapter);
|
||||
if (!adp)
|
||||
return NULL;
|
||||
adapters = g_slist_append(adapters, adp);
|
||||
} else
|
||||
audio_adapter_ref(adp);
|
||||
|
Loading…
Reference in New Issue
Block a user