mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
timeval: Remove duplicate memset().
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>
This commit is contained in:
committed by
Ben Pfaff
parent
49b507d99d
commit
ee5315b9f9
@@ -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
|
||||
|
Reference in New Issue
Block a user