Skip to content

Commit 596a7f1

Browse files
Hongbo Lirodrigovivi
authored andcommitted
drm/i915: Remove extra unlikely helper
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 <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Rodrigo Vivi <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 727eb1e commit 596a7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static int eb_select_context(struct i915_execbuffer *eb)
827827
struct i915_gem_context *ctx;
828828

829829
ctx = i915_gem_context_lookup(eb->file->driver_priv, eb->args->rsvd1);
830-
if (unlikely(IS_ERR(ctx)))
830+
if (IS_ERR(ctx))
831831
return PTR_ERR(ctx);
832832

833833
eb->gem_context = ctx;

0 commit comments

Comments
 (0)