From 2a4ce7092546039063fcf5aaa36760a89d8c9047 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 29 Oct 2005 21:13:43 +0200 Subject: remove no longer needed waiting for "dev" file Signed-off-by: Kay Sievers --- udev_utils.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'udev_utils.c') 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; -- cgit v1.2.3-54-g00ecf