Commit dd93cecf authored by Ma Feng's avatar Ma Feng Committed by Jani Nikula
Browse files

drm/i915/dp: use true,false for bool variable in intel_dp.c



Fixes coccicheck warning:

drivers/gpu/drm/i915/display/intel_dp.c:4950:1-33: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/i915/display/intel_dp.c:4906:1-33: WARNING: Assignment of 0/1 to bool variable

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarMa Feng <mafeng.ma@huawei.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1578013959-31486-3-git-send-email-mafeng.ma@huawei.com
parent 36a52d52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4903,7 +4903,7 @@ static u8 intel_dp_autotest_video_pattern(struct intel_dp *intel_dp)
	intel_dp->compliance.test_data.hdisplay = be16_to_cpu(h_width);
	intel_dp->compliance.test_data.vdisplay = be16_to_cpu(v_height);
	/* Set test active flag here so userspace doesn't interrupt things */
	intel_dp->compliance.test_active = 1;
	intel_dp->compliance.test_active = true;

	return DP_TEST_ACK;
}
@@ -4947,7 +4947,7 @@ static u8 intel_dp_autotest_edid(struct intel_dp *intel_dp)
	}

	/* Set test active flag here so userspace doesn't interrupt things */
	intel_dp->compliance.test_active = 1;
	intel_dp->compliance.test_active = true;

	return test_result;
}