chiark / gitweb /
add "Persistent Device Naming" rules file for disks
[elogind.git] / extras / cdrom_id / cdrom_id.c
index 941a2facfec3b55d795411b90c51ad42624f23df..091bf91559102a732dd65603bbffac97c1cb3604 100644 (file)
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
 
        result = ioctl(fd, CDROM_GET_CAPABILITY, NULL);
        if (result < 0) {
-               info("CDROM_GET_CABILITY failed for '%s'", node);
+               info("CDROM_GET_CAPABILITY failed for '%s'", node);
                rc = 3;
                goto close;
        }
@@ -147,8 +147,6 @@ int main(int argc, char *argv[])
 
        if (result & CDC_RAM)
                printf("ID_CDROM_RAM=1\n");
-       goto close;
-
 close:
        close(fd);
 exit: