diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 2396eb04a2..0618f4bb04 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -25,10 +25,8 @@ #include #include #include -#include "inteltool.h" -#if defined(__FreeBSD__) #include -#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)) {