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:
Vitaliy Mysak 2019-04-19 09:00:30 -04:00
parent c7df9161be
commit bf2242fade

View File

@ -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);