do not skip RUN execution if device node removal fails

This commit is contained in:
Anthony L. Awtrey 2007-12-29 17:19:06 +01:00 committed by Kay Sievers
parent 98520be72f
commit a0092d28db

View File

@ -408,8 +408,8 @@ int udev_node_remove(struct udevice *udev)
strlcat(filename, "/", sizeof(filename));
strlcat(filename, udev->name, sizeof(filename));
if (stat(filename, &stats) != 0) {
dbg("device node '%s' not found", filename);
return -1;
info("device node '%s' not found", filename);
return 0;
}
if (udev->devt && stats.st_rdev != udev->devt) {
info("device node '%s' points to a different device, skip removal", filename);