summaryrefslogtreecommitdiff
path: root/udev/udev-node.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-05-03 18:08:51 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-03 18:08:51 +0200
commitc7cdd8b2d28ff56211ac9ce54805f5568ffa7346 (patch)
tree410393897a8ed2ae38fd08fa27d4a4c4f8da7956 /udev/udev-node.c
parent7d5fb93976cabb66314cfc1ac35c23272b0954e3 (diff)
remove unused parameter from udev_node_mknod()
Diffstat (limited to 'udev/udev-node.c')
-rw-r--r--udev/udev-node.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/udev/udev-node.c b/udev/udev-node.c
index 780cd707c7..d55700d70f 100644
--- a/udev/udev-node.c
+++ b/udev/udev-node.c
@@ -33,14 +33,13 @@
#define TMP_FILE_EXT ".udev-tmp"
-int udev_node_mknod(struct udev_device *dev, const char *file, dev_t devnum, mode_t mode, uid_t uid, gid_t gid)
+int udev_node_mknod(struct udev_device *dev, const char *file, mode_t mode, uid_t uid, gid_t gid)
{
struct udev *udev = udev_device_get_udev(dev);
+ dev_t devnum = udev_device_get_devnum(dev);
struct stat stats;
int err = 0;
- if (major(devnum) == 0)
- devnum = udev_device_get_devnum(dev);
if (strcmp(udev_device_get_subsystem(dev), "block") == 0)
mode |= S_IFBLK;
@@ -373,7 +372,7 @@ int udev_node_add(struct udev_device *dev, mode_t mode, uid_t uid, gid_t gid)
major(udev_device_get_devnum(dev)), minor(udev_device_get_devnum(dev)),
mode, uid, gid);
- if (udev_node_mknod(dev, NULL, makedev(0,0), mode, uid, gid) != 0) {
+ if (udev_node_mknod(dev, NULL, mode, uid, gid) != 0) {
err = -1;
goto exit;
}