Skip to content

Commit af1ec38

Browse files
zhang jiaoshuahkh
authored andcommitted
selftests/timers: Remove unused NSEC_PER_SEC macro
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>
1 parent 7beaf1d commit af1ec38

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

tools/testing/selftests/timers/change_skew.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
#include <time.h>
3131
#include "../kselftest.h"
3232

33-
#define NSEC_PER_SEC 1000000000LL
34-
35-
3633
int change_skew_test(int ppm)
3734
{
3835
struct timex tx;

tools/testing/selftests/timers/skew_consistency.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#include <sys/wait.h>
3737
#include "../kselftest.h"
3838

39-
#define NSEC_PER_SEC 1000000000LL
40-
4139
int main(int argc, char **argv)
4240
{
4341
struct timex tx;

0 commit comments

Comments
 (0)