tools: minor cleanup, drop member return inline
Return the value from within the function instead of storing it in a
class member.
Change-Id: I8ee96d0c8bfff91fd9b14797de5a388456ef142d
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/bt.hpp b/tools/bt.hpp
index f407afa..0b0187f 100644
--- a/tools/bt.hpp
+++ b/tools/bt.hpp
@@ -18,14 +18,12 @@
bool sendContents(const std::string& input, std::uint16_t session) override;
blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
{
- return flags;
+ return blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
}
private:
BlobInterface* blob;
const internal::Sys* sys;
- blobs::FirmwareBlobHandler::UpdateFlags flags =
- blobs::FirmwareBlobHandler::UpdateFlags::ipmi;
};
} // namespace host_tool
diff --git a/tools/lpc.hpp b/tools/lpc.hpp
index 9e9c8b3..48ffe7f 100644
--- a/tools/lpc.hpp
+++ b/tools/lpc.hpp
@@ -24,13 +24,11 @@
bool sendContents(const std::string& input, std::uint16_t session) override;
blobs::FirmwareBlobHandler::UpdateFlags supportedType() const override
{
- return flags;
+ return blobs::FirmwareBlobHandler::UpdateFlags::lpc;
}
private:
BlobInterface* blob;
- blobs::FirmwareBlobHandler::UpdateFlags flags =
- blobs::FirmwareBlobHandler::UpdateFlags::lpc;
};
} // namespace host_tool