diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-29 13:51:20 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:00:29 -0700 |
commit | 3fd7a9bfc068a5598a97de5e4b4fff167917f362 (patch) | |
tree | 64ef77100e95386a4cf50f66cf9207d66f46ebc4 /namedev.c | |
parent | 5f72c470ad244020f65784c33eb6bcd4ae149403 (diff) |
[PATCH] remove unused timestamp field
Diffstat (limited to 'namedev.c')
-rw-r--r-- | namedev.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -31,7 +31,6 @@ #include <errno.h> #include <sys/wait.h> #include <sys/stat.h> -#include <sys/sysinfo.h> #include "libsysfs/sysfs/libsysfs.h" #include "list.h" @@ -697,7 +696,6 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d struct sysfs_device *sysfs_device = NULL; struct config_device *dev; struct perm_device *perm; - struct sysinfo info; char *pos; udev->mode = 0; @@ -774,7 +772,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d udev->ignore_remove = dev->ignore_remove; if (udev->type == 'n') - goto done; + goto exit; udev->partitions = dev->partitions; udev->mode = dev->mode; @@ -790,7 +788,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d strfieldcpy(udev->name, udev->kernel_name); if (udev->type == 'n') - goto done; + goto exit; perms: /* apply permissions from permissions file to empty fields */ @@ -815,11 +813,7 @@ perms: dbg("name, '%s' is going to have owner='%s', group='%s', mode = %#o", udev->name, udev->owner, udev->group, udev->mode); -done: - /* store time of action */ - sysinfo(&info); - udev->config_uptime = info.uptime; - +exit: return 0; } |