timeval: Remove duplicate memset().
authorRussell Bryant <rbryant@redhat.com>
Fri, 20 Feb 2015 18:22:14 +0000 (13:22 -0500)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Feb 2015 18:31:23 +0000 (10:31 -0800)
init_clock begins with a memset of 0 of the full clock struct.  This
memset at the end of a single struct member just makes extra sure that
it's set to 0, which is unnecessary.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/timeval.c

index a77fc61..8f1c97f 100644 (file)
@@ -115,7 +115,6 @@ init_clock(struct clock *c, clockid_t id)
     ovs_mutex_init(&c->mutex);
     atomic_init(&c->slow_path, false);
     xclock_gettime(c->id, &c->cache);
-    memset(&c->large_warp, 0, sizeof(c->large_warp));
 }
 
 static void