tools: drop CLOCK_MONOTONIC call, no longer necessary
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Mar 2014 05:27:47 +0000 (15:27 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Mar 2014 05:27:47 +0000 (15:27 +1000)
Obsolete as of 84c4f40f25e91ff6ecd35b47398d13ac3996f101.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/event-debug.c

index 876f6f0f65fc599d6206e32f3cdd1ac01148c0ae..12a2df8791f9cd7a6d7c2ffcffdb59b27f0857cc 100644 (file)
@@ -110,12 +110,6 @@ static int
 open_restricted(const char *path, int flags, void *user_data)
 {
        int fd = open(path, flags);
-       int clockid = CLOCK_MONOTONIC;
-
-       if (fd >= 0 && ioctl(fd, EVIOCSCLOCKID, &clockid) < 0)
-               fprintf(stderr, "Changing clock on %s failed, timestamps "
-                               "will be off\n", path);
-
        return fd < 0 ? -errno : fd;
 }