From d586a7f4bd0d83a1e432d5ca1ee63af94bdb4e13 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 1 Jul 2015 12:30:09 +0200 Subject: [PATCH] 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 --- src/hardware/baylibre-acme/api.c | 1 - 1 file changed, 1 deletion(-) 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;