[PATCH 05/14] drm/radeon: remove comparison to bool in radeon_object.c

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


Fixes coccicheck warning:

drivers/gpu/drm/radeon/radeon_object.c:427:6-35: 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/radeon_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c
index 140d94cc080d..f06c5e9dc72c 100644
--- a/drivers/gpu/drm/radeon/radeon_object.c
+++ b/drivers/gpu/drm/radeon/radeon_object.c
@@ -424,7 +424,7 @@ int radeon_bo_evict_vram(struct radeon_device *rdev)
 	/* late 2.6.33 fix IGP hibernate - we need pm ops to do this correct */
 #ifndef CONFIG_HIBERNATION
 	if (rdev->flags & RADEON_IS_IGP) {
-		if (rdev->mc.igp_sideport_enabled == false)
+		if (!rdev->mc.igp_sideport_enabled)
 			/* Useless to evict on IGP chips */
 			return 0;
 	}
--
2.26.0.106.g9fadedd



More information about the amd-gfx mailing list