From: Bartosz Golaszewski Date: Wed, 1 Jul 2015 10:30:09 +0000 (+0200) Subject: baylibre-acme: Remove unnecessary close(). X-Git-Tag: libsigrok-0.4.0~469 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d586a7f4bd0d83a1e432d5ca1ee63af94bdb4e13;p=libsigrok.git baylibre-acme: Remove unnecessary close(). The timerfd descriptor is closed automatically by g_io_channel_shutdown(). No need to close it manually. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/hardware/baylibre-acme/api.c b/src/hardware/baylibre-acme/api.c index 72e8f345..6cbae388 100644 --- a/src/hardware/baylibre-acme/api.c +++ b/src/hardware/baylibre-acme/api.c @@ -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;