summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-11-09 17:05:34 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-11-09 17:05:34 +0100
commita5258107d254e70f41ec620e77518b78f71297e9 (patch)
tree0478b3cc5a23551a7e4cf371b4d17752d41737d1
parentd1bba79592fde43163dc1023bbb8a56046b1932c (diff)
udevadm: also return major==0 results for --device-id-of-file
-rw-r--r--udevinfo.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 3fc40faf14..948aaccc36 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -213,9 +213,6 @@ static int stat_device(const char *name)
if (stat(name, &statbuf) != 0)
return -1;
- if (major(statbuf.st_dev) == 0)
- return -1;
-
printf("%d %d\n", major(statbuf.st_dev), minor(statbuf.st_dev));
return 0;
}