Fix clang-tidy failures
Change-Id: I4e9e02cb57ae5eac8d7dc9f7c6e1083959170766
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/src/IntelCPUSensorMain.cpp b/src/IntelCPUSensorMain.cpp
index ecc36dc..10a45e8 100644
--- a/src/IntelCPUSensorMain.cpp
+++ b/src/IntelCPUSensorMain.cpp
@@ -42,9 +42,7 @@
// clang-format off
// this needs to be included last or we'll have build issues
-extern "C" {
#include <linux/peci-ioctl.h>
-}
#if !defined(PECI_MBX_INDEX_DDR_DIMM_TEMP)
#define PECI_MBX_INDEX_DDR_DIMM_TEMP MBX_INDEX_DDR_DIMM_TEMP
#endif
diff --git a/src/NVMeContext.hpp b/src/NVMeContext.hpp
index 5be03e0..bcfa5d6 100644
--- a/src/NVMeContext.hpp
+++ b/src/NVMeContext.hpp
@@ -23,7 +23,7 @@
virtual ~NVMeContext()
{
- close();
+ scanTimer.cancel();
}
void addSensor(const std::shared_ptr<NVMeSensor>& sensor)