Skip to content

Commit

Permalink
timeval: Remove duplicate memset().
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
russellb authored and blp committed Feb 20, 2015
1 parent 49b507d commit ee5315b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/timeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee5315b

Please sign in to comment.