From 732b5eb55fb874937cbd73b0033755ae0c027075 Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Wed, 23 May 2012 21:27:31 +0530 Subject: [PATCH] audio: Remove unwanted code from manager Here the variable adp never be NULL, so no need to check it against NULL. --- audio/manager.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/audio/manager.c b/audio/manager.c index 9c7d0d39c..fb7af98ac 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -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);