Skip to content
Commit 37f13252 authored by Kefeng Wang's avatar Kefeng Wang Committed by Ilya Dryomov
Browse files

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: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 4214fb15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment