From: Bryan O'Donoghue Date: Thu, 3 Dec 2015 17:29:40 +0000 (+0000) Subject: greybus: loopback: Drop unused timeval variables X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9673dcebe472f298ba9781db84c5880d55372cc9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: loopback: Drop unused timeval variables start and end aren't used and should be dropped. Signed-off-by: Bryan O'Donoghue Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 7d582cd8127b..c1943f2b83fb 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -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,