From 5e8241cb3a319d4bd32c2b58d1d60d165d98ba73 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 15 Jul 2009 16:51:08 -0300 Subject: [PATCH] Remove useless instruction. --- audio/gstavdtpsink.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c index 24a226e7b..bc25bd190 100644 --- a/audio/gstavdtpsink.c +++ b/audio/gstavdtpsink.c @@ -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; }