diff options
author | Ma Feng <mafeng.ma@huawei.com> | 2020-01-03 02:12:37 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-01-09 15:47:16 +0100 |
commit | 36a52d524e7e3d63437cd379cd8f13189aadadd1 (patch) | |
tree | 14d7e3ea449ee9f00c4415319df17305bbdccacb | |
parent | drm/i915/gt: runtime-pm is no longer required for ce->ops->pin() (diff) | |
download | linux-36a52d524e7e3d63437cd379cd8f13189aadadd1.tar.xz linux-36a52d524e7e3d63437cd379cd8f13189aadadd1.zip |
drm/i915: use true,false for bool variable in i915_debugfs.c
Fixes coccicheck warning:
drivers/gpu/drm/i915/i915_debugfs.c:3078:4-36: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/i915/i915_debugfs.c:3078:4-36: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/i915/i915_debugfs.c:3080:4-36: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/i915/i915_debugfs.c:3080:4-36: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ma Feng <mafeng.ma@huawei.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1578013959-31486-2-git-send-email-mafeng.ma@huawei.com
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index db184536acef..8f01c2bc7355 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -3077,9 +3077,9 @@ static ssize_t i915_displayport_test_active_write(struct file *file, * testing code, only accept an actual value of 1 here */ if (val == 1) - intel_dp->compliance.test_active = 1; + intel_dp->compliance.test_active = true; else - intel_dp->compliance.test_active = 0; + intel_dp->compliance.test_active = false; } } drm_connector_list_iter_end(&conn_iter); |