tools: scope of the variable 'bytesRead' can be reduced.

(style) The scope of the variable 'bytesRead' can be reduced.
[tools/bt.cpp:21]
[tools/p2a.cpp:111]

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I6b96247a02cd35d073b424501bb161e80aedf3b4
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index 2593503..9e246ae 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -108,8 +108,6 @@
         return false;
     }
 
-    int bytesRead = 0;
-    std::uint32_t offset = 0;
     const std::uint32_t p2aLength = aspeedP2aOffset;
 
     auto readBuffer = std::make_unique<std::uint8_t[]>(p2aLength);
@@ -121,6 +119,9 @@
 
     try
     {
+        int bytesRead = 0;
+        std::uint32_t offset = 0;
+
         do
         {
             bytesRead = sys->read(inputFd, readBuffer.get(), p2aLength);