Skip to content
Snippets Groups Projects
Verified Commit f2a4bcb2 authored by Christian Gmeiner's avatar Christian Gmeiner Committed by Maíra Canal
Browse files

drm/v3d: Use v3d_perfmon_find()

parent b558053f
No related branches found
No related tags found
No related merge requests found
......@@ -402,11 +402,7 @@ int v3d_perfmon_get_values_ioctl(struct drm_device *dev, void *data,
if (req->pad != 0)
return -EINVAL;
mutex_lock(&v3d_priv->perfmon.lock);
perfmon = idr_find(&v3d_priv->perfmon.idr, req->id);
v3d_perfmon_get(perfmon);
mutex_unlock(&v3d_priv->perfmon.lock);
perfmon = v3d_perfmon_find(v3d_priv, req->id);
if (!perfmon)
return -EINVAL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment