summaryrefslogtreecommitdiff
path: root/util/inteltool
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@gmx.at>2013-04-05 20:38:08 +0200
committerRonald G. Minnich <rminnich@gmail.com>2013-04-08 18:17:59 +0200
commit0c8b7d1ac272d5578e61c260a14f4fabbf3f53eb (patch)
treee2fa44eaa505630600b3ff335d3409e49fc093c6 /util/inteltool
parentdb9eaf4cb2a2fe65b0d08dc5b47426f7399d6757 (diff)
downloadcoreboot-0c8b7d1ac272d5578e61c260a14f4fabbf3f53eb.tar.xz
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>
Diffstat (limited to 'util/inteltool')
-rw-r--r--util/inteltool/inteltool.c10
1 files changed, 2 insertions, 8 deletions
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 <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)) {