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/bt.cpp b/tools/bt.cpp
index c49aecf..9e77688 100644
--- a/tools/bt.cpp
+++ b/tools/bt.cpp
@@ -16,13 +16,13 @@
         return false;
     }
 
-    static constexpr int btBufferLen = 50;
-    std::uint8_t readBuffer[btBufferLen];
-    int bytesRead;
-    std::uint32_t offset = 0;
-
     try
     {
+        static constexpr int btBufferLen = 50;
+        std::uint8_t readBuffer[btBufferLen];
+        int bytesRead;
+        std::uint32_t offset = 0;
+
         do
         {
             bytesRead = sys->read(inputFd, readBuffer, sizeof(readBuffer));