From 2ddbe8df492a71d5030309d9ad87c44ac17498fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 30 Dec 2013 16:10:08 +0000 Subject: [PATCH] nettimeprovider: remove unnecessary NULL check Error is never NULL when we break out of the loop. COVERITY CID 1037151 --- libs/gst/net/gstnettimeprovider.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/gst/net/gstnettimeprovider.c b/libs/gst/net/gstnettimeprovider.c index 202b6c7968..ebe570c04f 100644 --- a/libs/gst/net/gstnettimeprovider.c +++ b/libs/gst/net/gstnettimeprovider.c @@ -209,8 +209,7 @@ gst_net_time_provider_thread (gpointer data) } } - if (err != NULL) - g_error_free (err); + g_error_free (err); GST_INFO_OBJECT (self, "time provider thread is stopping"); return NULL;