From: Uwe Hermann Date: Mon, 16 Feb 2015 00:53:15 +0000 (+0100) Subject: baylibre-acme: Drop unneeded comment. X-Git-Tag: libsigrok-0.4.0~627 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d258022db0b79dffc2bbdde0882e821966dbc312;p=libsigrok.git 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. --- 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: