Skip to content

Commit a82049b

Browse files
committed
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>
1 parent 9a11843 commit a82049b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/ast/ast_post.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static u32 cbr_scan2(struct ast_private *ast)
572572
for (loop = 0; loop < CBR_PASSNUM2; loop++) {
573573
if ((data = cbr_test2(ast)) != 0) {
574574
data2 &= data;
575-
if (!data)
575+
if (!data2)
576576
return 0;
577577
break;
578578
}

0 commit comments

Comments
 (0)