From 79d163568bb4295ec442ff65ed4440809b03b66b Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 11 Feb 2012 21:22:06 +0100 Subject: [PATCH] libprocps: remove linux 2.7.0 check Checking for linux kernel version 2.7.0 is meaningless now when 3.0.0 is out. Reported-By: Christian Hofstaedtler Bug-Debian: http://bugs.debian.org/635553 Signed-off-by: Sami Kerola --- proc/devname.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/proc/devname.c b/proc/devname.c index 4be24e98..fa965233 100644 --- a/proc/devname.c +++ b/proc/devname.c @@ -282,9 +282,6 @@ unsigned dev_to_tty(char *restrict ret, unsigned chop, dev_t dev_t_dev, int pid, unsigned i = 0; int c; if(dev == 0u) goto no_tty; - if(linux_version_code > LINUX_VERSION(2, 7, 0)){ // not likely to make 2.6.xx - if(link_name(tmp, MAJOR_OF(dev), MINOR_OF(dev), pid, "tty" )) goto abbrev; - } if(driver_name(tmp, MAJOR_OF(dev), MINOR_OF(dev) )) goto abbrev; if( link_name(tmp, MAJOR_OF(dev), MINOR_OF(dev), pid, "fd/2" )) goto abbrev; if( guess_name(tmp, MAJOR_OF(dev), MINOR_OF(dev) )) goto abbrev; -- 2.40.0