- /* the old node is gone, maybe we have a device with a symlink now */
- update_link(udev, udev_old->name);
+ /*
+ * if the node name has changed, delete the node,
+ * or possibly restore a symlink of another device
+ */
+ if (strcmp(udev->name, udev_old->name) != 0)
+ update_link(udev, udev_old->name);