]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/blkdev: get_device_by_uuid() silence clang warning
authorKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 05:31:28 +0000 (13:31 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 06:52:18 +0000 (14:52 +0800)
commit995ac9438c2907eac50f19f69813f4281c00d059
treec0d790a259b2f771fae3b48e158b4891a9499dea
parent1f0abeffa76db1e4a7835153c9a299e89622e2ac
common/blkdev: get_device_by_uuid() silence clang warning

early return if blkid_get_cache() fails. this chance is but cosmetic,
it pleases clang static analyzer which thinks that rc will be
overwritten if dev is nullptr.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/blkdev.cc