diff options
author | Kay Sievers <kay@pim> | 2005-10-29 21:13:43 +0200 |
---|---|---|
committer | Kay Sievers <kay@pim> | 2005-10-29 21:13:43 +0200 |
commit | 2a4ce7092546039063fcf5aaa36760a89d8c9047 (patch) | |
tree | 23dce578292ccdccda77f8164daf7e0a3c98f4c0 /udev_utils.c | |
parent | 29ed5bf414c9eebdc78c68540f8a19af7691ef1f (diff) |
remove no longer needed waiting for "dev" file
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'udev_utils.c')
-rw-r--r-- | udev_utils.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/udev_utils.c b/udev_utils.c index c7292d0f04..683378aadf 100644 --- a/udev_utils.c +++ b/udev_utils.c @@ -57,29 +57,6 @@ int log_priority(const char *priority) return 0; } -int kernel_release_satisfactory(unsigned int version, unsigned int patchlevel, unsigned int sublevel) -{ - static unsigned int kversion = 0; - static unsigned int kpatchlevel; - static unsigned int ksublevel; - - if (kversion == 0) { - struct utsname uts; - if (uname(&uts) != 0) - return -1; - - if (sscanf (uts.release, "%u.%u.%u", &kversion, &kpatchlevel, &ksublevel) != 3) { - kversion = 0; - return -1; - } - } - - if (kversion >= version && kpatchlevel >= patchlevel && ksublevel >= sublevel) - return 1; - else - return 0; -} - int name_list_add(struct list_head *name_list, const char *name, int sort) { struct name_entry *loop_name; |