]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/timers: Remove unused NSEC_PER_SEC macro
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Fri, 6 Sep 2024 02:52:59 +0000 (10:52 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 6 Sep 2024 19:37:41 +0000 (13:37 -0600)
By reading the code, I found the macro NSEC_PER_SEC
is never referenced in the code. Just remove it.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: John Stultz <jstultz@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/timers/change_skew.c
tools/testing/selftests/timers/skew_consistency.c

index 4421cd562c246da3c7a675b9ee555cd1b7cc44e5..18e794a46c235ced527b2296b0af53c2ba16228a 100644 (file)
@@ -30,9 +30,6 @@
 #include <time.h>
 #include "../kselftest.h"
 
-#define NSEC_PER_SEC 1000000000LL
-
-
 int change_skew_test(int ppm)
 {
        struct timex tx;
index c8e6bffe4e0a144bdf4ff10e50ae19ea9bd0a41a..83450145fe6579c1faab5d24d048ab975ed2d510 100644 (file)
@@ -36,8 +36,6 @@
 #include <sys/wait.h>
 #include "../kselftest.h"
 
-#define NSEC_PER_SEC 1000000000LL
-
 int main(int argc, char **argv)
 {
        struct timex tx;