Skip to content

Commit e2941a4

Browse files
ashutoshxThomas Hellström
authored andcommitted
drm/xe/xe_gt_idle: Drop redundant newline in name
Newline in name is redunant and produces an unnecessary empty line during 'cat name'. Newline is added during sysfs_emit. See '27a1a1e2e47d ("drm/xe: stringify the argument to avoid potential vulnerability")'. v2: Add Fixes tag (Riana) Fixes: 7b076d1 ("drm/xe/mtl: Add support to get C6 residency/status of MTL") Reviewed-by: Riana Tauro <[email protected]> Signed-off-by: Ashutosh Dixit <[email protected]> (cherry picked from commit e5626eb) Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Thomas Hellström <[email protected]>
1 parent 5b672ec commit e2941a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/xe/xe_gt_idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ void xe_gt_idle_sysfs_init(struct xe_gt_idle *gtidle)
145145
}
146146

147147
if (xe_gt_is_media_type(gt)) {
148-
sprintf(gtidle->name, "gt%d-mc\n", gt->info.id);
148+
sprintf(gtidle->name, "gt%d-mc", gt->info.id);
149149
gtidle->idle_residency = xe_guc_pc_mc6_residency;
150150
} else {
151-
sprintf(gtidle->name, "gt%d-rc\n", gt->info.id);
151+
sprintf(gtidle->name, "gt%d-rc", gt->info.id);
152152
gtidle->idle_residency = xe_guc_pc_rc6_residency;
153153
}
154154

0 commit comments

Comments
 (0)