Skip to content

Commit 9411082

Browse files
raagjadavThomas Hellström
authored andcommitted
drm/xe: drop redundant conversion to bool
The result of integer comparison already evaluates to bool. No need for explicit conversion. No functional impact. Fixes: 0e414bf ("drm/xe: Expose PCIe link downgrade attributes") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505292205.MoljmkjQ-lkp@intel.com/ Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://lore.kernel.org/r/20250529160937.490147-1-raag.jadav@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 61761a6) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent b885ae2 commit 9411082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_device_sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ auto_link_downgrade_capable_show(struct device *dev, struct device_attribute *at
115115
xe_pm_runtime_put(xe);
116116

117117
cap = REG_FIELD_GET(LINK_DOWNGRADE, val);
118-
return sysfs_emit(buf, "%u\n", cap == DOWNGRADE_CAPABLE ? true : false);
118+
return sysfs_emit(buf, "%u\n", cap == DOWNGRADE_CAPABLE);
119119
}
120120
static DEVICE_ATTR_ADMIN_RO(auto_link_downgrade_capable);
121121

0 commit comments

Comments
 (0)