Stefan Tauner (stefan.tauner@gmx.at) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3030
-gerrit
commit 73f03fa3e47ca2370fb70fad1b4b8bcf5c6648d8 Author: Stefan Tauner stefan.tauner@gmx.at Date: Fri Apr 5 20:38:08 2013 +0200
inteltool: remove unused file descriptor variable and ifdefs
Change-Id: I6a119b1f362f481914377e8d14c713159f895130 Signed-off-by: Stefan Tauner stefan.tauner@gmx.at --- util/inteltool/inteltool.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 2396eb0..0618f4b 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -25,10 +25,8 @@ #include <getopt.h> #include <fcntl.h> #include <sys/mman.h> -#include "inteltool.h" -#if defined(__FreeBSD__) #include <unistd.h> -#endif +#include "inteltool.h"
/* * http://pci-ids.ucw.cz/read/PC/8086 @@ -306,11 +304,7 @@ int main(int argc, char *argv[]) }
#if defined(__FreeBSD__) - int io_fd; -#endif - -#if defined(__FreeBSD__) - if ((io_fd = open("/dev/io", O_RDWR)) < 0) { + if (open("/dev/io", O_RDWR) < 0) { perror("/dev/io"); #else if (iopl(3)) {