From d258022db0b79dffc2bbdde0882e821966dbc312 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 16 Feb 2015 01:53:15 +0100 Subject: [PATCH] baylibre-acme: Drop unneeded comment. There's indeed no g_fclose() unfortunately. The g_*() wrappers for file handling are mainly there to deal with portability issues in file names (encoding, character sets, etc) on different platforms. --- src/hardware/baylibre-acme/protocol.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index e7f1ede1..3ceee6c1 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -335,10 +335,6 @@ SR_PRIV int bl_acme_set_shunt(const struct sr_channel_group *cg, uint64_t shunt) g_string_free(path, TRUE); g_fprintf(fd, "%" PRIu64 "\n", MOHM_TO_UOHM(shunt)); - /* - * XXX There's no g_fclose() in GLib. This seems to work, - * but is it safe? - */ fclose(fd); out: