inteltool: remove unused file descriptor variable and ifdefs

Change-Id: I6a119b1f362f481914377e8d14c713159f895130
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-on: http://review.coreboot.org/3030
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Stefan Tauner 2013-04-05 20:38:08 +02:00 committed by Ronald G. Minnich
parent db9eaf4cb2
commit 0c8b7d1ac2
1 changed files with 2 additions and 8 deletions

View File

@ -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)) {