]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/i915: Remove extra unlikely helper
authorHongbo Li <lihongbo22@huawei.com>
Sat, 31 Aug 2024 09:46:55 +0000 (17:46 +0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 5 Sep 2024 19:44:37 +0000 (15:44 -0400)
In IS_ERR, the unlikely is used for the input parameter,
so these is no need to use it again outside.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240831094655.4153520-1-lihongbo22@huawei.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

index 8aff06933f5454383d41872e0f2270ffb286adfd..577dbd49cf16c2e3649de6c34f1d85f23b9c85ea 100644 (file)
@@ -827,7 +827,7 @@ static int eb_select_context(struct i915_execbuffer *eb)
        struct i915_gem_context *ctx;
 
        ctx = i915_gem_context_lookup(eb->file->driver_priv, eb->args->rsvd1);
-       if (unlikely(IS_ERR(ctx)))
+       if (IS_ERR(ctx))
                return PTR_ERR(ctx);
 
        eb->gem_context = ctx;