mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
drm/msm: Deletion of unnecessary checks before the function call "release_firmware"
The release_firmware() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
264f7d673f
commit
5acb07ea80
1 changed files with 2 additions and 4 deletions
|
@ -386,9 +386,7 @@ void adreno_gpu_cleanup(struct adreno_gpu *gpu)
|
||||||
msm_gem_put_iova(gpu->memptrs_bo, gpu->base.id);
|
msm_gem_put_iova(gpu->memptrs_bo, gpu->base.id);
|
||||||
drm_gem_object_unreference(gpu->memptrs_bo);
|
drm_gem_object_unreference(gpu->memptrs_bo);
|
||||||
}
|
}
|
||||||
if (gpu->pm4)
|
release_firmware(gpu->pm4);
|
||||||
release_firmware(gpu->pm4);
|
release_firmware(gpu->pfp);
|
||||||
if (gpu->pfp)
|
|
||||||
release_firmware(gpu->pfp);
|
|
||||||
msm_gpu_cleanup(&gpu->base);
|
msm_gpu_cleanup(&gpu->base);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue