From d57bed783845bc1c92f3ac7b95a8b4022091231c Mon Sep 17 00:00:00 2001 From: Vadim Barkov Date: Wed, 1 Feb 2017 13:57:50 +0000 Subject: [PATCH] Fixed mixed tabs and spacing and comments in contrib/powerpc/linux.c --- contrib/powerpc-vsx/linux.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/contrib/powerpc-vsx/linux.c b/contrib/powerpc-vsx/linux.c index 162d86f5c..c0a4eca2d 100644 --- a/contrib/powerpc-vsx/linux.c +++ b/contrib/powerpc-vsx/linux.c @@ -11,8 +11,7 @@ * BUG REPORTS: png-mng-implement@sourceforge.net * * png_have_vsx implemented for Linux by reading the widely available - * pseudo-file /proc/cpuinfo. Result is cached so if function will be called - * multiple times only one reading is perfomed. + * pseudo-file /proc/cpuinfo. * * This code is strict ANSI-C and is probably moderately portable; it does * however use and it assumes that /proc/cpuinfo is never localized. @@ -43,13 +42,13 @@ png_have_vsx(png_structp png_ptr) while(fgets(input,MAXLINE,f) != NULL) { token = strstr(input,string); - if(token != NULL) - return cachedResult; + if(token != NULL) + return 1; } } #ifdef PNG_WARNINGS_SUPPORTED else png_warning(png_ptr, "/proc/cpuinfo open failed"); #endif - return cachedResult; + return 0; }