提交 21e2eae4 编写于 作者: V Vasiliy Kulikov 提交者: Dave Airlie

drm: radeon: fix error value sign

enable_vblank implementations should use negative result to indicate error.
radeon_enable_vblank() returns EINVAL in this case.  Change this to -EINVAL.
Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 16790569
...@@ -76,7 +76,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc) ...@@ -76,7 +76,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
default: default:
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n", DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
crtc); crtc);
return EINVAL; return -EINVAL;
} }
} else { } else {
switch (crtc) { switch (crtc) {
...@@ -89,7 +89,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc) ...@@ -89,7 +89,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
default: default:
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n", DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
crtc); crtc);
return EINVAL; return -EINVAL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册