summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-21 13:44:39 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:13 -0700
commit7e720bd4ad8257d81d273d98294ebbcc03ade9ba (patch)
tree5ce8a27d9abe0213679e815d1d13bcc4597da3d8 /udev_remove.c
parent1cec1c241600fc11121f9504bc9e95836c03bd9c (diff)
[PATCH] switch major/minor to dev_t
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_remove.c b/udev_remove.c
index baafdea51a..3a3db737c1 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -85,7 +85,7 @@ static int delete_node(struct udevice *udev)
if (stat(filename, &stats) != 0)
return -1;
- if (udev->major && stats.st_rdev != makedev(udev->major, udev->minor)) {
+ if (udev->devt && stats.st_rdev != udev->devt) {
info("device node '%s' points to a different device, skip removal", filename);
return -1;
}