summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-10 00:30:43 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:06 -0700
commitc6c13c31814e9fc7557ca303c331d0cf13664372 (patch)
tree909cb55c93626c870671a797d47879b69c26cc17 /udev-add.c
parent7d27ce1dc005b3972ab7ed77a86f6333c2f8ee9f (diff)
[PATCH] cleanup man & remove symlink comment
remove "want symlinks" text from udev-add.c mention SYMLINK in man page man page format cleanup man page example for SYMLINK
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/udev-add.c b/udev-add.c
index 8d45b26077..17b69eadab 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -54,18 +54,15 @@
static int get_major_minor(struct sysfs_class_device *class_dev, struct udevice *udev)
{
int retval = -ENODEV;
-
char *dev;
dev = sysfs_get_value_from_attributes(class_dev->directory->attributes, "dev");
if (dev == NULL)
goto exit;
-
dbg("dev='%s'", dev);
if (sscanf(dev, "%u:%u", &udev->major, &udev->minor) != 2)
goto exit;
-
dbg("found major=%d, minor=%d", udev->major, udev->minor);
retval = 0;
@@ -101,10 +98,6 @@ static int create_path(char *file)
return 0;
}
-/*
- * we possibly want to add some symlinks here
- * only numeric owner/group id's are supported
- */
static int create_node(struct udevice *dev)
{
char filename[255];
@@ -116,7 +109,6 @@ static int create_node(struct udevice *dev)
int i;
int tail;
-
strncpy(filename, udev_root, sizeof(filename));
strncat(filename, dev->name, sizeof(filename));
@@ -239,7 +231,6 @@ static struct sysfs_class_device *get_class_dev(char *device_name)
strcpy(dev_path, sysfs_path);
strcat(dev_path, device_name);
-
dbg("looking at '%s'", dev_path);
/* open up the sysfs class device for this thing... */