]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/flock.cc: remove dead initialization of 'new_lock_start'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 17:13:48 +0000 (19:13 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 17:13:48 +0000 (19:13 +0200)
Fix for:

212 uint64_t new_lock_start = new_lock.start;
    Value stored to 'new_lock_start' during its initialization is
    never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/flock.cc

index 4e825c9df278f08d39caf38919602ee9903a9f30..3c18f413de0a7bdba1d3534f09e9d3e3e409247d 100644 (file)
@@ -209,7 +209,7 @@ void ceph_lock_state_t::adjust_locks(list<multimap<uint64_t, ceph_filelock>::ite
 {
   dout(15) << "adjust_locks" << dendl;
   bool new_lock_to_end = (0 == new_lock.length);
-  uint64_t new_lock_start = new_lock.start;
+  uint64_t new_lock_start;
   uint64_t new_lock_end = new_lock.start + new_lock.length - 1;
   uint64_t old_lock_start, old_lock_end;
   __s64 old_lock_client = 0;