Add modernize-redundant-void-arg
Enable this check and fix the failures.
Change-Id: I89b13daf1161be40564367562bb9c8c0c459e1d0
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/DeviceMgmt.cpp b/src/DeviceMgmt.cpp
index ffc0376..e8eb875 100644
--- a/src/DeviceMgmt.cpp
+++ b/src/DeviceMgmt.cpp
@@ -49,7 +49,7 @@
return name.str();
}
-bool I2CDeviceParams::devicePresent(void) const
+bool I2CDeviceParams::devicePresent() const
{
fs::path path = i2cBusPath(bus) / deviceDirName(bus, address);
@@ -63,7 +63,7 @@
return fs::exists(path, ec);
}
-bool I2CDeviceParams::deviceStatic(void) const
+bool I2CDeviceParams::deviceStatic() const
{
if (!devicePresent())
{
@@ -91,7 +91,7 @@
destroy();
}
-int I2CDevice::create(void) const
+int I2CDevice::create() const
{
// If it's already instantiated, there's nothing we need to do.
if (params.devicePresent())
@@ -126,7 +126,7 @@
return 0;
}
-int I2CDevice::destroy(void) const
+int I2CDevice::destroy() const
{
// No params.devicePresent() check on this like in create(), since it
// might be used to clean up after a device instantiation that was only