Commit 584f13e7 authored by Yushan Zhou's avatar Yushan Zhou Committed by Thierry Reding

drm/tegra: Remove redundant null checks before kfree

Fix the following coccicheck warning:
./drivers/gpu/drm/tegra/submit.c:689:2-7: WARNING:
NULL check before some freeing functions is not needed.
Signed-off-by: default avatarYushan Zhou <katrinzhou@tencent.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent d5179020
...@@ -680,8 +680,7 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data, ...@@ -680,8 +680,7 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
kfree(job_data->used_mappings); kfree(job_data->used_mappings);
} }
if (job_data) kfree(job_data);
kfree(job_data);
put_bo: put_bo:
gather_bo_put(&bo->base); gather_bo_put(&bo->base);
unlock: unlock:
......
Markdown is supported
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