]> err.no Git - systemd/commitdiff
volume_id: remove left-over fd close()
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 29 Aug 2008 15:06:08 +0000 (17:06 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 29 Aug 2008 15:06:08 +0000 (17:06 +0200)
extras/volume_id/lib/libvolume_id-private.h
extras/volume_id/lib/volume_id.c

index 578f6fc4e75acac3f00a8705759f05a8a4603a87..c9afaf94e798223f87f159485c58f3936551b100 100644 (file)
@@ -50,7 +50,6 @@ struct volume_id {
        uint8_t         *seekbuf;
        uint64_t        seekbuf_off;
        size_t          seekbuf_len;
-       int             fd_close:1;
 };
 
 /* filesystems */
index 86e66bb76c80dc8f5eb9d7b70734abeb04bf42c0..ef2b663f6c9a86c18e95d8b8f9fe1e66672b92f2 100644 (file)
@@ -501,9 +501,6 @@ void volume_id_close(struct volume_id *id)
        if (id == NULL)
                return;
 
-       if (id->fd_close != 0)
-               close(id->fd);
-
        volume_id_free_buffer(id);
 
        free(id);