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:
Syam Sidhardhan 2012-05-23 21:27:31 +05:30 committed by Johan Hedberg
parent aecbb97c6a
commit 732b5eb55f

View File

@ -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);