Skip to content

Commit 813b468

Browse files
WangYuliakpm00
authored andcommitted
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>
1 parent 36e2241 commit 813b468

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ int main(int argc, char **argv)
6767
if (delay < 0)
6868
exit(1);
6969

70-
sprintf(delay_str, "%s\n", argv[1]);
71-
7270
sprintf(delay_str, "%s\n", argv[1]);
7371
fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR);
7472
if (fd < 0) {

0 commit comments

Comments
 (0)