From 06c01995feb5553486df37caf3fce9121d377910 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Thu, 2 Apr 2020 19:34:52 +0200 Subject: [PATCH] removed unnecessary NULL check --- lib/webfuse/adapter/impl/session_manager.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/webfuse/adapter/impl/session_manager.c b/lib/webfuse/adapter/impl/session_manager.c index cc41fa0..a872d54 100644 --- a/lib/webfuse/adapter/impl/session_manager.c +++ b/lib/webfuse/adapter/impl/session_manager.c @@ -33,10 +33,7 @@ struct wf_impl_session * wf_impl_session_manager_add( { struct wf_impl_session * session = wf_impl_session_create( wsi, authenticators, timer_manager, server, mountpoint_factory); - if (NULL != session) - { - wf_slist_append(&manager->sessions, &session->item); - } + wf_slist_append(&manager->sessions, &session->item); return session; }