rbd: silence bogus uninitialized use warning in rbd_acquire_lock()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 13 Jul 2017 07:46:35 +0000 (15:46 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:42 +0000 (19:56 +0200)
commit37f13252579389a659ae3ceec8c60f15bdf70f0c
treea7dcbfbf17f323af5bbdcb1767de58202c8b293d
parent4214fb158cc423ac31b841000e219855be055388
rbd: silence bogus uninitialized use warning in rbd_acquire_lock()

  drivers/block/rbd.c: In function 'rbd_acquire_lock':
  drivers/block/rbd.c:3602:44: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Silence the warning, found it when built old kernel(3.10) with
OBS(opensuse build service).

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c