style: scope reduction

[elog_meta.hpp:77]: (style) The scope of the variable 'ROOT' can be
reduced.

Change-Id: I2511c3b1551db08e5f0eef2d71513de36eb79f80
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/elog_meta.hpp b/elog_meta.hpp
index 0fe05f2..6e44406 100644
--- a/elog_meta.hpp
+++ b/elog_meta.hpp
@@ -74,7 +74,6 @@
                                         const std::vector<std::string>& data,
                                         AssociationList& list)
 {
-    constexpr auto ROOT = "/xyz/openbmc_project/inventory";
     std::map<std::string, std::string> metadata;
     parse(data, metadata);
     auto iter = metadata.find(match);
@@ -88,6 +87,8 @@
         if ((callouts.end() != callout) &&
             !strcmp((iter->second).c_str(), std::get<0>(*callout)))
         {
+            constexpr auto ROOT = "/xyz/openbmc_project/inventory";
+
             list.push_back(std::make_tuple(
                 "callout", "fault", std::string(ROOT) + std::get<1>(*callout)));
         }