Coverity id : 25526
Change-Id: I99c72db80445f2ddecdda563df048883ef1df31c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/364416
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
phys_addr_t loop;
int err = 0;
struct nvmap_handle *h = cache_work->h;
- struct nvmap_client *client = h->owner;
+ struct nvmap_client *client;
unsigned int op = cache_work->op;
if (!h || !h->alloc)
return -EFAULT;
+ client = h->owner;
if (client)
trace_cache_maint(client, h, pstart, pend, op);
wmb();