]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: do not assign never read variable
authorKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 07:45:00 +0000 (15:45 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Sep 2017 03:01:53 +0000 (11:01 +0800)
"git" is not read after being reset.

this silences clang analyzer warning of:

Value stored to 'gift' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueStore.cc

index 852c6ba14e3150c70aab6a412650cf15bb07e3b3..8aee903518148a051434e7b6add3271d0ec90ab2 100644 (file)
@@ -4901,8 +4901,6 @@ int BlueStore::_balance_bluefs_freespace(PExtentVector *extents)
       dout(1) << __func__ << " gifting " << e << " to bluefs" << dendl;
       extents->push_back(e);
     }
-    gift = 0;
-
     ret = 1;
   }