Update clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I593ddf950d14009ab77251fd6d3f248214661765
diff --git a/src/gpio.cpp b/src/gpio.cpp
index bb7f79b..86d4cec 100644
--- a/src/gpio.cpp
+++ b/src/gpio.cpp
@@ -21,12 +21,13 @@
#include <fcntl.h>
#include <unistd.h>
-#include <filesystem>
-#include <fstream>
#include <gpioplus/utility/aspeed.hpp>
#include <nlohmann/json.hpp>
#include <phosphor-logging/log.hpp>
+#include <filesystem>
+#include <fstream>
+
const std::string gpioDev = "/sys/class/gpio";
using namespace phosphor::logging;
@@ -93,7 +94,6 @@
result = configGpio(gpioCfg);
if (result < 0)
{
-
std::string errorMsg =
"Error configuring gpio: GPIO_NUM=" +
std::to_string(gpioCfg.number) +
@@ -109,7 +109,6 @@
int configGpio(gpioInfo& gpioConfig)
{
-
auto gpioNum = gpioConfig.number;
auto gpioDirection = gpioConfig.direction;