summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2019-02-21 10:08:19 +0800
committerChris Wilson <chris@chris-wilson.co.uk>2019-02-21 16:01:00 +0000
commit772b5408e3aac93835320dc198ded8e68a00df5d (patch)
tree257dc3643a574e811508a865f5e39b42315e33a2 /drivers/gpu/drm/i915/i915_gem_gtt.c
parent43a8f684b6d1e16c6ecf918332f9b35686bf7edd (diff)
downloadtalos-op-linux-772b5408e3aac93835320dc198ded8e68a00df5d.tar.gz
talos-op-linux-772b5408e3aac93835320dc198ded8e68a00df5d.zip
drm/i915: remove redundant likely/unlikely annotation
unlikely has already included in IS_ERR(), so just remove redundant likely/unlikely annotation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190221020819.21832-1-cgxu519@gmx.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index d646d37eec2f..39671caab76b 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -3701,7 +3701,7 @@ i915_get_ggtt_vma_pages(struct i915_vma *vma)
}
ret = 0;
- if (unlikely(IS_ERR(vma->pages))) {
+ if (IS_ERR(vma->pages)) {
ret = PTR_ERR(vma->pages);
vma->pages = NULL;
DRM_ERROR("Failed to get pages for VMA view type %u (%d)!\n",
OpenPOWER on IntegriCloud