mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
drm/tegra: Delete an unnecessary check before the function call "vunmap"
The vunmap() function performs also input parameter validation. 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> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/b3fbdcaf-1bda-7ce9-935b-2d716727ec39@users.sourceforge.net
This commit is contained in:
parent
5345a5ab51
commit
a63caf13a8
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ static void tegra_fb_destroy(struct drm_framebuffer *framebuffer)
|
|||
struct tegra_bo *bo = fb->planes[i];
|
||||
|
||||
if (bo) {
|
||||
if (bo->pages && bo->vaddr)
|
||||
if (bo->pages)
|
||||
vunmap(bo->vaddr);
|
||||
|
||||
drm_gem_object_unreference_unlocked(&bo->gem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue