Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drm/xe: drop redundant conversion to bool
@ 2025-05-29 16:09 Raag Jadav
  2025-05-29 16:16 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Raag Jadav @ 2025-05-29 16:09 UTC (permalink / raw)
  To: lucas.demarchi, rodrigo.vivi, riana.tauro
  Cc: intel-xe, Raag Jadav, kernel test robot

The result of integer comparison already evaluates to bool. No need for
explicit conversion.

No functional impact.

Fixes: 0e414bf7ad01 ("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>
---
 drivers/gpu/drm/xe/xe_device_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device_sysfs.c b/drivers/gpu/drm/xe/xe_device_sysfs.c
index 2e657692e5b5..b9440f8c781e 100644
--- a/drivers/gpu/drm/xe/xe_device_sysfs.c
+++ b/drivers/gpu/drm/xe/xe_device_sysfs.c
@@ -115,7 +115,7 @@ auto_link_downgrade_capable_show(struct device *dev, struct device_attribute *at
 	xe_pm_runtime_put(xe);
 
 	cap = REG_FIELD_GET(LINK_DOWNGRADE, val);
-	return sysfs_emit(buf, "%u\n", cap == DOWNGRADE_CAPABLE ? true : false);
+	return sysfs_emit(buf, "%u\n", cap == DOWNGRADE_CAPABLE);
 }
 static DEVICE_ATTR_ADMIN_RO(auto_link_downgrade_capable);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-05-31  8:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 16:09 [PATCH v1] drm/xe: drop redundant conversion to bool Raag Jadav
2025-05-29 16:16 ` ✓ CI.Patch_applied: success for " Patchwork
2025-05-29 16:16 ` ✓ CI.checkpatch: " Patchwork
2025-05-29 16:18 ` ✓ CI.KUnit: " Patchwork
2025-05-29 16:18 ` [PATCH v1] " Rodrigo Vivi
2025-05-29 16:28 ` ✓ CI.Build: success for " Patchwork
2025-05-29 16:31 ` ✓ CI.Hooks: " Patchwork
2025-05-29 16:32 ` ✓ CI.checksparse: " Patchwork
2025-05-30  2:18 ` ✗ Xe.CI.Full: failure " Patchwork
2025-05-30  7:02 ` ✓ CI.Patch_applied: success for drm/xe: drop redundant conversion to bool (rev2) Patchwork
2025-05-30  7:02 ` ✓ CI.checkpatch: " Patchwork
2025-05-30  7:03 ` ✓ CI.KUnit: " Patchwork
2025-05-30  7:14 ` ✓ CI.Build: " Patchwork
2025-05-30  7:16 ` ✓ CI.Hooks: " Patchwork
2025-05-30  7:18 ` ✓ CI.checksparse: " Patchwork
2025-05-30  7:53 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-31  8:37 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox