mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 07:51:16 -04:00
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: Yushan Zhou <katrinzhou@tencent.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
committed by
Thierry Reding
parent
d5179020f5
commit
584f13e753
@@ -680,8 +680,7 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
|
||||
kfree(job_data->used_mappings);
|
||||
}
|
||||
|
||||
if (job_data)
|
||||
kfree(job_data);
|
||||
kfree(job_data);
|
||||
put_bo:
|
||||
gather_bo_put(&bo->base);
|
||||
unlock:
|
||||
|
||||
Reference in New Issue
Block a user