[PATCH 07/14] drm/radeon: remove comparison to bool in r100.c

Zheng Bin zhengbin13 at huawei.com
Wed May 6 14:33:19 UTC 2020


Fixes coccicheck warning:

drivers/gpu/drm/radeon/r100.c:4065:5-37: WARNING: Comparison to bool

Reported-by: Hulk Robot <hulkci at huawei.com>
Signed-off-by: Zheng Bin <zhengbin13 at huawei.com>
---
 drivers/gpu/drm/radeon/r100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 24c8db673931..298a9c22074a 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -4062,7 +4062,7 @@ int r100_init(struct radeon_device *rdev)
 			RREG32(R_0007C0_CP_STAT));
 	}
 	/* check if cards are posted or not */
-	if (radeon_boot_test_post_card(rdev) == false)
+	if (!radeon_boot_test_post_card(rdev))
 		return -EINVAL;
 	/* Set asic errata */
 	r100_errata(rdev);
--
2.26.0.106.g9fadedd



More information about the dri-devel mailing list