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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -680,7 +680,6 @@ int tegra_drm_ioctl_channel_submit(struct drm_device *drm, void *data,
		kfree(job_data->used_mappings);
	}

	if (job_data)
	kfree(job_data);
put_bo:
	gather_bo_put(&bo->base);