chiark / gitweb /
cdrom_id: add Xen cdrom support
[elogind.git] / extras / cdrom_id / cdrom_id.c
index 7be0789f35bc2bf92013a2571fefb22c07eb7430..c578f12921a0113ceb5180f6404634011ac0dee3 100644 (file)
@@ -567,10 +567,8 @@ int main(int argc, char *argv[])
        }
 
        /* check drive */
-       if (cd_inquiry(udev, fd) < 0) {
-               rc = 2;
-               goto exit;
-       }
+       if (cd_inquiry(udev, fd) < 0)
+               goto print;
 
        /* read drive and possibly current profile */
        if (cd_profiles(udev, fd) < 0)