Fix: Dead Assignment
authorDenis Kenzior <denkenz@gmail.com>
Thu, 4 Feb 2010 06:00:00 +0000 (00:00 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 4 Feb 2010 06:00:00 +0000 (00:00 -0600)
gatchat/gatmux.c

index 5541424..3902956 100644 (file)
@@ -294,12 +294,11 @@ static void wakeup_writer(GAtMux *mux)
 int g_at_mux_raw_write(GAtMux *mux, const void *data, int towrite)
 {
        GError *error = NULL;
-       GIOStatus status;
        gssize count = towrite;
        gsize bytes_written;
 
-       status = g_io_channel_write_chars(mux->channel, (gchar *) data,
-                                               count, &bytes_written, &error);
+       g_io_channel_write_chars(mux->channel, (gchar *) data,
+                                       count, &bytes_written, &error);
 
        return bytes_written;
 }