Commit 9673dceb authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Greg Kroah-Hartman

greybus: loopback: Drop unused timeval variables

start and end aren't used and should be dropped.
Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent d6a1a3b5
......@@ -53,9 +53,6 @@ struct gb_loopback_device {
int ms_wait;
u32 error;
struct timeval start;
struct timeval end;
/* Overall stats */
struct gb_loopback_stats latency;
struct gb_loopback_stats throughput;
......@@ -577,8 +574,6 @@ static void gb_loopback_reset_stats(struct gb_loopback_device *gb_dev)
}
/* Reset aggregate stats */
memset(&gb_dev->start, 0, sizeof(struct timeval));
memset(&gb_dev->end, 0, sizeof(struct timeval));
memcpy(&gb_dev->latency, &reset, sizeof(struct gb_loopback_stats));
memcpy(&gb_dev->throughput, &reset, sizeof(struct gb_loopback_stats));
memcpy(&gb_dev->requests_per_second, &reset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment