bluez: Remove useless instruction.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Wed, 15 Jul 2009 19:51:08 +0000 (16:51 -0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:12 +0000 (14:30 +0000)
sys/bluez/gstavdtpsink.c

index b57e563..f6bebb1 100644 (file)
@@ -425,14 +425,10 @@ gst_avdtp_sink_conf_recv_stream_fd (GstAvdtpSink * self)
 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;
 }