diff options
author | Patrick Venture <venture@google.com> | 2018-10-12 17:05:49 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-12 17:05:49 -0700 |
commit | c9ad5ffbca32b8454b3072fad184ab1e7cf93119 (patch) | |
tree | 53c36ee8753b0b7f98b83117ba57e577c4d21e60 | |
parent | 5c4b17b2c5ae15bfcb92447151863c4ad67f40fa (diff) | |
download | phosphor-ipmi-blobs-c9ad5ffbca32b8454b3072fad184ab1e7cf93119.tar.gz phosphor-ipmi-blobs-c9ad5ffbca32b8454b3072fad184ab1e7cf93119.zip |
manager: reduce scope of variable
The lsess variable can have a smaller scope.
Change-Id: I79aa84b25b52708c8c35ed1a56dbfe89dabd29fb
Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r-- | manager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/manager.cpp b/manager.cpp index 32fdd74..a64300c 100644 --- a/manager.cpp +++ b/manager.cpp @@ -334,7 +334,6 @@ bool BlobManager::writeMeta(uint16_t session, uint32_t offset, bool BlobManager::getSession(uint16_t* sess) { uint16_t tries = 0; - uint16_t lsess; if (!sess) { @@ -348,7 +347,7 @@ bool BlobManager::getSession(uint16_t* sess) */ do { - lsess = next++; + uint16_t lsess = next++; if (!sessions.count(lsess)) { /* value not in use, return it. */ |