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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Raag Jadav <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 61761a6) Signed-off-by: Thomas Hellström <[email protected]>
1 parent b885ae2 commit 9411082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)