drop readability-static-accessed-through-instance
Drop NOLINT for readability-static-accessed-through-instance in bmc code
as this lint warning has been disabled in repo's clang tidy config.
Change-Id: Ie9bb7ffb2798347e5f609ef2df445ab626cf60a4
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/bmc/update_manager.cpp b/bmc/update_manager.cpp
index 922f2bc..7664195 100644
--- a/bmc/update_manager.cpp
+++ b/bmc/update_manager.cpp
@@ -51,7 +51,6 @@
return true;
}
-// NOLINTNEXTLINE(readability-static-accessed-through-instance)
auto Manager::processImage(sdbusplus::message::unix_fd image,
ApplyTimeIntf::RequestedApplyTimes applyTime,
std::string id, std::string objPath)
diff --git a/bmc/usb/usb_manager.cpp b/bmc/usb/usb_manager.cpp
index 89b0e9b..2a8a196 100644
--- a/bmc/usb/usb_manager.cpp
+++ b/bmc/usb/usb_manager.cpp
@@ -66,7 +66,6 @@
#ifdef START_UPDATE_DBUS_INTEFACE
-// NOLINTNEXTLINE(readability-static-accessed-through-instance)
auto findAssociatedUpdatablePath(sdbusplus::async::context& ctx)
-> sdbusplus::async::task<Paths>
{
@@ -79,7 +78,6 @@
interface, propertyName);
}
-// NOLINTNEXTLINE(readability-static-accessed-through-instance)
auto USBManager::startUpdate(int fd) -> sdbusplus::async::task<bool>
{
using Updater = sdbusplus::client::xyz::openbmc_project::software::Update<>;
@@ -108,7 +106,6 @@
co_return true;
}
-// NOLINTNEXTLINE(readability-static-accessed-through-instance)
auto USBManager::run() -> sdbusplus::async::task<void>
{
auto res = copyImage();