The -d option in udev_allows to go from a partition to the underlying disk
for s390 dasd labels. If the device is already the disk itself, finding the
parent will fail, therefore -d on /sys/block/dasda/ for example gives no
result at all.
if (class_dev_parent != NULL)
vid = open_classdev(class_dev_parent);
else
if (class_dev_parent != NULL)
vid = open_classdev(class_dev_parent);
else
- vid = open_classdev(class_dev_parent);
+ vid = open_classdev(class_dev);
if (vid == NULL)
goto exit;
if (vid == NULL)
goto exit;