[PATCH] drm/xe/xe_gt_idle: Drop redundant newline in name
Ashutosh Dixit
ashutosh.dixit at intel.com
Fri Feb 2 22:35:25 UTC 2024
Newline in name is redunant and produces an unnecessary empty line during
'cat name'.
Fixes: 27a1a1e2e47d ("drm/xe: stringify the argument to avoid potential vulnerability")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
drivers/gpu/drm/xe/xe_gt_idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_gt_idle.c b/drivers/gpu/drm/xe/xe_gt_idle.c
index 9358f73368896..42fdc7f688d0e 100644
--- a/drivers/gpu/drm/xe/xe_gt_idle.c
+++ b/drivers/gpu/drm/xe/xe_gt_idle.c
@@ -87,7 +87,7 @@ static ssize_t name_show(struct device *dev,
{
struct xe_gt_idle *gtidle = dev_to_gtidle(dev);
- return sysfs_emit(buff, "%s\n", gtidle->name);
+ return sysfs_emit(buff, "%s", gtidle->name);
}
static DEVICE_ATTR_RO(name);
--
2.41.0
More information about the Intel-xe
mailing list