From e88298920159d02107dcb4a6b984a50d032d2a27 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 14 Nov 2015 21:43:24 -0800 Subject: [PATCH] sunaudiosrc: remove unnecessary NULL checks before g_free() --- sys/sunaudio/gstsunaudiosrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/sunaudio/gstsunaudiosrc.c b/sys/sunaudio/gstsunaudiosrc.c index ec1d7d7a42..0f454bf8ee 100644 --- a/sys/sunaudio/gstsunaudiosrc.c +++ b/sys/sunaudio/gstsunaudiosrc.c @@ -177,8 +177,7 @@ gst_sunaudiosrc_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_DEVICE: - if (sunaudiosrc->device) - g_free (sunaudiosrc->device); + g_free (sunaudiosrc->device); sunaudiosrc->device = g_value_dup_string (value); break; default: