Here the variable adp never be NULL, so no need to check it against NULL. --- audio/manager.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/audio/manager.c b/audio/manager.c index 9c7d0d3..fb7af98 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); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html