diff options
author | Dave Airlie <airlied@gmail.com> | 2014-04-16 19:42:24 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-18 13:18:01 +1000 |
commit | a82049b1f1aeb02818092455cd43134ef83d81ea (patch) | |
tree | db121fd93f30db26b84ddf6566a9081cc706ac3b | |
parent | 9a11843987b29b7b7eff650bff7d5731ba5117d5 (diff) | |
download | linux-a82049b1f1aeb02818092455cd43134ef83d81ea.tar.bz2 |
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) for (loop = 0; loop < CBR_PASSNUM2; loop++) { if ((data = cbr_test2(ast)) != 0) { data2 &= data; - if (!data) + if (!data2) return 0; break; } |