drm/tegra: Remove redundant null checks before kfree
authorYushan Zhou <katrinzhou@tencent.com>
Tue, 29 Nov 2022 09:45:46 +0000 (17:45 +0800)
committerThierry Reding <treding@nvidia.com>
Thu, 26 Jan 2023 14:55:39 +0000 (15:55 +0100)
commit584f13e75356936736930c501bce2db3616fb70e
treedd0d21f64b3c52a6abefd5d0721e745a2f15d8a6
parentd5179020f5ce44fd449790a9c12ef6c1a90a2ca7
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>
drivers/gpu/drm/tegra/submit.c