Commit 4efa6661 authored by Chengguang Xu's avatar Chengguang Xu Committed by Deepak Rawat

drm/vmwgfx: remove redundant unlikely annotation

unlikely has already included in IS_ERR(), so just
remove redundant unlikely annotation.
Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
Signed-off-by: default avatarDeepak Rawat <drawat@vmware.com>
parent b2130cca
...@@ -210,7 +210,7 @@ static int vmw_gb_context_init(struct vmw_private *dev_priv, ...@@ -210,7 +210,7 @@ static int vmw_gb_context_init(struct vmw_private *dev_priv,
for (i = 0; i < SVGA_COTABLE_DX10_MAX; ++i) { for (i = 0; i < SVGA_COTABLE_DX10_MAX; ++i) {
uctx->cotables[i] = vmw_cotable_alloc(dev_priv, uctx->cotables[i] = vmw_cotable_alloc(dev_priv,
&uctx->res, i); &uctx->res, i);
if (unlikely(IS_ERR(uctx->cotables[i]))) { if (IS_ERR(uctx->cotables[i])) {
ret = PTR_ERR(uctx->cotables[i]); ret = PTR_ERR(uctx->cotables[i]);
goto out_cotables; goto out_cotables;
} }
......
...@@ -660,7 +660,7 @@ vmw_cmd_res_check(struct vmw_private *dev_priv, ...@@ -660,7 +660,7 @@ vmw_cmd_res_check(struct vmw_private *dev_priv,
res = vmw_user_resource_noref_lookup_handle res = vmw_user_resource_noref_lookup_handle
(dev_priv, sw_context->fp->tfile, *id_loc, converter); (dev_priv, sw_context->fp->tfile, *id_loc, converter);
if (unlikely(IS_ERR(res))) { if (IS_ERR(res)) {
DRM_ERROR("Could not find or use resource 0x%08x.\n", DRM_ERROR("Could not find or use resource 0x%08x.\n",
(unsigned int) *id_loc); (unsigned int) *id_loc);
return PTR_ERR(res); return PTR_ERR(res);
...@@ -3835,7 +3835,7 @@ static int vmw_execbuf_tie_context(struct vmw_private *dev_priv, ...@@ -3835,7 +3835,7 @@ static int vmw_execbuf_tie_context(struct vmw_private *dev_priv,
res = vmw_user_resource_noref_lookup_handle res = vmw_user_resource_noref_lookup_handle
(dev_priv, sw_context->fp->tfile, handle, (dev_priv, sw_context->fp->tfile, handle,
user_context_converter); user_context_converter);
if (unlikely(IS_ERR(res))) { if (IS_ERR(res)) {
DRM_ERROR("Could not find or user DX context 0x%08x.\n", DRM_ERROR("Could not find or user DX context 0x%08x.\n",
(unsigned) handle); (unsigned) handle);
return PTR_ERR(res); return PTR_ERR(res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment