drm/radeon: remove boolean checks in if statements.
Remove unnecessary variable comparisions to true/false in if statements and check the value of the variable directly. Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
2cacd20e91
commit
fbd62354f0
@@ -1789,7 +1789,7 @@ static bool radeon_pm_debug_check_in_vbl(struct radeon_device *rdev, bool finish
|
||||
u32 stat_crtc = 0;
|
||||
bool in_vbl = radeon_pm_in_vbl(rdev);
|
||||
|
||||
if (in_vbl == false)
|
||||
if (!in_vbl)
|
||||
DRM_DEBUG_DRIVER("not in vbl for pm change %08x at %s\n", stat_crtc,
|
||||
finish ? "exit" : "entry");
|
||||
return in_vbl;
|
||||
|
||||
Reference in New Issue
Block a user