]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueStore: Removing dead code
authorErwan Velu <erwan@redhat.com>
Tue, 12 Jan 2016 10:18:37 +0000 (11:18 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 19 Jan 2016 10:05:23 +0000 (11:05 +0100)
commitd03146d0fc04418b7701340f115519b3bd94622b
treeafbd0dc81f9fc5c7824054835b1a24b07d39ff11
parentfcac028db81ba066cf45c3b5f529a9a41c500227
os/bluestore/BlueStore: Removing dead code

This assignement of r is misleading. It does assign a value to r that is never
used by any code.

When the code runs into the while loop, r is always initialized again before any
usage. There isn't any direct jump to the "out" label making this value being
used as a return code.

When the code does exit this while loop, the r value is reassigned before being
used as a return code.

This makes this assignement useless and confusing. This patch simply remove this dead/useless code.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/os/bluestore/BlueStore.cc