summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-14 21:43:24 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-11-15 01:43:08 -0800
commite88298920159d02107dcb4a6b984a50d032d2a27 (patch)
tree28f99e995c424cd0ecd5f659fd2e4b7168e0b7b3
parent678e45a8f714acddef2d6c3186100ac1ee2c9ffd (diff)
sunaudiosrc: remove unnecessary NULL checks before g_free()
-rw-r--r--sys/sunaudio/gstsunaudiosrc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sunaudio/gstsunaudiosrc.c b/sys/sunaudio/gstsunaudiosrc.c
index ec1d7d7a4..0f454bf8e 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: