From: Stan Shebs Date: Fri, 17 May 2019 19:25:19 +0000 (-0700) Subject: Fix sense of a test in the static-linking version of ppc get_clockfreq X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d141ab782c4444a5e8f2e6eadfba7dea504f70d;p=thirdparty%2Fglibc.git Fix sense of a test in the static-linking version of ppc get_clockfreq --- diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c index 8821218ece9..4e4c2a2262d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c +++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c @@ -59,7 +59,7 @@ __get_clockfreq (void) timebase : 33333333 We search for this line and convert the number into an integer. */ int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY); - if (__glibc_likely (fd != -1)) + if (__glibc_unlikely (fd == -1)) return result; /* The timebase will be in the 1st 1024 bytes for systems with up