manager: reduce scope of variable
The lsess variable can have a smaller scope.
Change-Id: I79aa84b25b52708c8c35ed1a56dbfe89dabd29fb
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/manager.cpp b/manager.cpp
index 32fdd74..a64300c 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -334,7 +334,6 @@
bool BlobManager::getSession(uint16_t* sess)
{
uint16_t tries = 0;
- uint16_t lsess;
if (!sess)
{
@@ -348,7 +347,7 @@
*/
do
{
- lsess = next++;
+ uint16_t lsess = next++;
if (!sessions.count(lsess))
{
/* value not in use, return it. */