From: Sami Kerola Date: Sat, 11 Feb 2012 20:22:06 +0000 (+0100) Subject: libprocps: remove linux 2.7.0 check X-Git-Tag: v3.3.3~83^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79d163568bb4295ec442ff65ed4440809b03b66b;p=procps-ng 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 --- 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;