]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Remove unnecessary close().
authorBartosz Golaszewski <redacted>
Wed, 1 Jul 2015 10:30:09 +0000 (12:30 +0200)
committerBartosz Golaszewski <redacted>
Wed, 1 Jul 2015 10:30:09 +0000 (12:30 +0200)
The timerfd descriptor is closed automatically by
g_io_channel_shutdown(). No need to close it manually.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/api.c

index 72e8f345b870d04d35a52cd6994eabc225bbdcb9..6cbae3880bd10e2152ba81944e0f41b30e2b20f8 100644 (file)
@@ -415,7 +415,6 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
        g_io_channel_shutdown(devc->channel, FALSE, NULL);
        g_io_channel_unref(devc->channel);
        devc->channel = NULL;
-       close(devc->timer_fd);
 
        /* Send last packet. */
        packet.type = SR_DF_END;