Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/thermal: remove duplicate sprintf() call in workload_hint_test

Remove redundant sprintf() call that was duplicating the same operation of
formatting delay_str with argv[1].

Link: https://lkml.kernel.org/r/6338CD0E839B770B+20250710130412.284531-1-wangyuli@uniontech.com
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Cc: Guan Wentao <guanwentao@uniontech.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

WangYuli and committed by
Andrew Morton
813b4680 36e22416

-2
-2
tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c
··· 68 68 exit(1); 69 69 70 70 sprintf(delay_str, "%s\n", argv[1]); 71 - 72 - sprintf(delay_str, "%s\n", argv[1]); 73 71 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR); 74 72 if (fd < 0) { 75 73 perror("Unable to open workload notification delay\n");