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

Signed-off-by: WangYuli <wangy...@uniontech.com>
---
 .../selftests/thermal/intel/workload_hint/workload_hint_test.c  | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c 
b/tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c
index a40097232967..bda006af8b1b 100644
--- a/tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c
+++ b/tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c
@@ -67,8 +67,6 @@ int main(int argc, char **argv)
                if (delay < 0)
                        exit(1);
 
-               sprintf(delay_str, "%s\n", argv[1]);
-
                sprintf(delay_str, "%s\n", argv[1]);
                fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR);
                if (fd < 0) {
-- 
2.50.0


Reply via email to