diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-07-16 07:23:42 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-18 09:11:30 +0200 |
commit | a63caf13a8037a0e04b9ecabfbcf8e340f33ce8d (patch) | |
tree | c7ace1fd3cd98c7cb3c23c8031a71d73edc9bdc3 /drivers/gpu | |
parent | 5345a5ab513b3438bab7d5b02c02d9bde064209e (diff) | |
download | linux-stable-a63caf13a8037a0e04b9ecabfbcf8e340f33ce8d.tar.gz linux-stable-a63caf13a8037a0e04b9ecabfbcf8e340f33ce8d.tar.bz2 linux-stable-a63caf13a8037a0e04b9ecabfbcf8e340f33ce8d.zip |
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tegra/fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/fb.c b/drivers/gpu/drm/tegra/fb.c index 1b12aa7a715e..e6d71fa4028e 100644 --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c @@ -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); |