summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2014-04-16 11:42:24 +0200
committerDave Airlie <airlied@redhat.com>2014-04-18 05:18:01 +0200
commita82049b1f1aeb02818092455cd43134ef83d81ea (patch)
treedb121fd93f30db26b84ddf6566a9081cc706ac3b
parentdrm/nouveau/bios: fix a bit shift error introduced by 457e77b (diff)
downloadlinux-a82049b1f1aeb02818092455cd43134ef83d81ea.tar.xz
linux-a82049b1f1aeb02818092455cd43134ef83d81ea.zip
drm/ast: fix value check in cbr_scan2
this is a typo vs the ums driver, fix to check correct value. Found initially by Coverity. Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/ast/ast_post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
index 977cfb35837a..635f6ffc27c2 100644
--- a/drivers/gpu/drm/ast/ast_post.c
+++ b/drivers/gpu/drm/ast/ast_post.c
@@ -572,7 +572,7 @@ static u32 cbr_scan2(struct ast_private *ast)
for (loop = 0; loop < CBR_PASSNUM2; loop++) {
if ((data = cbr_test2(ast)) != 0) {
data2 &= data;
- if (!data)
+ if (!data2)
return 0;
break;
}