]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: remove unnecessary ifdef
authorKarel Zak <kzak@redhat.com>
Mon, 17 Jan 2022 11:36:11 +0000 (12:36 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Jan 2022 11:36:11 +0000 (12:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c

index 513649916d7d236ea741eab8d60abffe14298d26..6168370e2f64cec4013bae60d2b9a47b61f5c14c 100644 (file)
@@ -876,9 +876,6 @@ int blkid_probe_set_device(blkid_probe pr, int fd,
        struct stat sb;
        uint64_t devsiz = 0;
        char *dm_uuid = NULL;
-#ifdef CDROM_GET_CAPABILITY
-       long last_written = 0;
-#endif
 
        blkid_reset_probe(pr);
        blkid_probe_reset_buffers(pr);
@@ -971,6 +968,8 @@ int blkid_probe_set_device(blkid_probe pr, int fd,
            !dm_uuid &&
            blkid_probe_is_wholedisk(pr)) {
 
+               long last_written = 0;
+
                /*
                 * pktcdvd.ko accepts only these ioctls:
                 *   CDROMEJECT CDROMMULTISESSION CDROMREADTOCENTRY