summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cpucontrol/amd.c2
-rw-r--r--usr.sbin/cpucontrol/intel.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/cpucontrol/amd.c b/usr.sbin/cpucontrol/amd.c
index bd36c9c..be0e0de 100644
--- a/usr.sbin/cpucontrol/amd.c
+++ b/usr.sbin/cpucontrol/amd.c
@@ -92,9 +92,7 @@ amd_update(const char *dev, const char *path)
assert(dev);
fd = -1;
- devfd = -1;
fw_image = MAP_FAILED;
- error = 0;
devfd = open(dev, O_RDWR);
if (devfd < 0) {
WARN(0, "could not open %s for writing", dev);
diff --git a/usr.sbin/cpucontrol/intel.c b/usr.sbin/cpucontrol/intel.c
index 18c6e5e..15ac939 100644
--- a/usr.sbin/cpucontrol/intel.c
+++ b/usr.sbin/cpucontrol/intel.c
@@ -104,7 +104,6 @@ intel_update(const char *dev, const char *path)
assert(dev);
fd = -1;
- devfd = -1;
fw_image = MAP_FAILED;
ext_table = NULL;
ext_header = NULL;
OpenPOWER on IntegriCloud