From: Luiz Augusto von Dentz Date: Wed, 15 Jul 2009 19:51:08 +0000 (-0300) Subject: bluez: Remove useless instruction. X-Git-Tag: 1.19.3~507^2~14204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=621d857d49b7f778af2ab3b6b0b9bf4af3a17671;p=platform%2Fupstream%2Fgstreamer.git bluez: Remove useless instruction. --- diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index b57e563..f6bebb1 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -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; }