Fix immediate reassign
Don't reassign value of cache without any previus use. It produced warnings when analyzing with scanbuild. Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
This commit is contained in:
parent
c7df9161be
commit
bf2242fade
@ -189,8 +189,6 @@ static int ocf_restart_meta_io(struct ocf_request *req)
|
||||
struct ocf_io *io;
|
||||
int ret;
|
||||
|
||||
cache = req->cache;
|
||||
|
||||
/* Fill with the latest metadata. */
|
||||
OCF_METADATA_LOCK_RD();
|
||||
metadata_io_req_fill(meta_io_req);
|
||||
|
Loading…
Reference in New Issue
Block a user