From: Kay Sievers Date: Fri, 29 Aug 2008 15:06:08 +0000 (+0200) Subject: volume_id: remove left-over fd close() X-Git-Tag: 174~1618 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=550d5c28791a1bd50bd70bab6f9c4ee419e3ad50;p=systemd volume_id: remove left-over fd close() --- diff --git a/extras/volume_id/lib/libvolume_id-private.h b/extras/volume_id/lib/libvolume_id-private.h index 578f6fc4..c9afaf94 100644 --- a/extras/volume_id/lib/libvolume_id-private.h +++ b/extras/volume_id/lib/libvolume_id-private.h @@ -50,7 +50,6 @@ struct volume_id { uint8_t *seekbuf; uint64_t seekbuf_off; size_t seekbuf_len; - int fd_close:1; }; /* filesystems */ diff --git a/extras/volume_id/lib/volume_id.c b/extras/volume_id/lib/volume_id.c index 86e66bb7..ef2b663f 100644 --- a/extras/volume_id/lib/volume_id.c +++ b/extras/volume_id/lib/volume_id.c @@ -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);