]> err.no Git - systemd/commitdiff
udevd: remove check for dev_t, DEVPATH_OLD takes care of that
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 29 May 2009 16:54:03 +0000 (18:54 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 29 May 2009 16:54:03 +0000 (18:54 +0200)
udev/udevd.c

index 5ee61d2e23c296c853a453b97729741e973da6f5..37b547ad656a5f57bd130e7be102995d8f20082e 100644 (file)
@@ -301,18 +301,6 @@ static int devpath_busy(struct udev_event *event)
                        event->delaying_seqnum = udev_device_get_seqnum(loop_event->dev);
                        return 4;
                }
-
-               /* check for our major:minor number */
-               if (major(udev_device_get_devnum(event->dev)) > 0 &&
-                   udev_device_get_devnum(loop_event->dev) == udev_device_get_devnum(event->dev) &&
-                   strcmp(udev_device_get_subsystem(event->dev), udev_device_get_subsystem(loop_event->dev)) == 0) {
-                       dbg(event->udev, "%llu, device event still pending %llu (%d:%d)\n",
-                           udev_device_get_seqnum(event->dev),
-                           udev_device_get_seqnum(loop_event->dev),
-                           major(udev_device_get_devnum(loop_event->dev)), minor(udev_device_get_devnum(loop_event->dev)));
-                       event->delaying_seqnum = udev_device_get_seqnum(loop_event->dev);
-                       return 5;
-               }
        }
        return 0;
 }