diff options
author | Dave Airlie <airlied@gmail.com> | 2014-04-16 05:42:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-17 23:18:01 -0400 |
commit | a82049b1f1aeb02818092455cd43134ef83d81ea (patch) | |
tree | db121fd93f30db26b84ddf6566a9081cc706ac3b | |
parent | 9a11843987b29b7b7eff650bff7d5731ba5117d5 (diff) |
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.c | 2 |
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) | |||
572 | for (loop = 0; loop < CBR_PASSNUM2; loop++) { | 572 | for (loop = 0; loop < CBR_PASSNUM2; loop++) { |
573 | if ((data = cbr_test2(ast)) != 0) { | 573 | if ((data = cbr_test2(ast)) != 0) { |
574 | data2 &= data; | 574 | data2 &= data; |
575 | if (!data) | 575 | if (!data2) |
576 | return 0; | 576 | return 0; |
577 | break; | 577 | break; |
578 | } | 578 | } |