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.
This commit is contained in:
parent
3452785431
commit
d258022db0
|
@ -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_string_free(path, TRUE);
|
||||||
g_fprintf(fd, "%" PRIu64 "\n", MOHM_TO_UOHM(shunt));
|
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);
|
fclose(fd);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
Loading…
Reference in New Issue