From: Reynaldo H. Verdejo Pinochet Date: Sun, 15 Nov 2015 05:51:11 +0000 (-0800) Subject: v4l2/object: remove unnecessary NULL check before g_free() X-Git-Tag: 1.19.3~509^2~3125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ef6ecc244285161ce5d12dfd1e6fda2c55c329c;p=platform%2Fupstream%2Fgstreamer.git v4l2/object: remove unnecessary NULL check before g_free() --- diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 4a2acd304b..ab37b8f87d 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -465,11 +465,9 @@ gst_v4l2_object_destroy (GstV4l2Object * v4l2object) { g_return_if_fail (v4l2object != NULL); - if (v4l2object->videodev) - g_free (v4l2object->videodev); + g_free (v4l2object->videodev); - if (v4l2object->channel) - g_free (v4l2object->channel); + g_free (v4l2object->channel); if (v4l2object->formats) { gst_v4l2_object_clear_format_list (v4l2object);