OSDN Git Service

Remove useless instruction.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Wed, 15 Jul 2009 19:51:08 +0000 (16:51 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Thu, 16 Jul 2009 12:23:47 +0000 (09:23 -0300)
audio/gstavdtpsink.c

index 24a226e..bc25bd1 100644 (file)
@@ -430,14 +430,11 @@ static gboolean gst_avdtp_sink_conf_recv_stream_fd(
 static gboolean server_callback(GIOChannel *chan,
                                        GIOCondition cond, gpointer data)
 {
-       GstAvdtpSink *sink;
-
        if (cond & G_IO_HUP || cond & G_IO_NVAL)
                return FALSE;
-       else if (cond & G_IO_ERR) {
-               sink = GST_AVDTP_SINK(data);
-               GST_WARNING_OBJECT(sink, "Untreated callback G_IO_ERR");
-       }
+       else if (cond & G_IO_ERR)
+               GST_WARNING_OBJECT(GST_AVDTP_SINK(data),
+                                       "Untreated callback G_IO_ERR");
 
        return TRUE;
 }