X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdevice.c;h=7b73110120fca436a76489070cb9253b862efd31;hp=2cbb81aebdfb4dfb9e4e95242eb59b6215114bc1;hb=70f12d37087721089a150fad985f0dca0f8af277;hpb=eb9e50de3ec59a86e782fec27d76a03789c22d33 diff --git a/src/device.c b/src/device.c index 2cbb81aeb..7b7311012 100644 --- a/src/device.c +++ b/src/device.c @@ -188,10 +188,6 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p if ((r = device_find_escape_name(m, path, &u)) < 0) return r; - /* If a different unit already claimed this name then let's do - * nothing. This can happen for example when two disks with - * the same label are plugged in, and which hence try to get - * conflicting symlinks in /dev/disk/by-label/xxxx */ if (u && DEVICE(u)->sysfs && !path_equal(DEVICE(u)->sysfs, sysfs)) return -EEXIST;