greybus: loopback: Drop unused timeval variables

start and end aren't used and should be dropped.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Bryan O'Donoghue 2015-12-03 17:29:40 +00:00 committed by Greg Kroah-Hartman
parent d6a1a3b5ea
commit 9673dcebe4
1 changed files with 0 additions and 5 deletions

View File

@ -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,