greybus: loopback: Drop unused timeval variables
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 3 Dec 2015 17:29:40 +0000 (17:29 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 3 Dec 2015 23:37:24 +0000 (15:37 -0800)
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>
drivers/staging/greybus/loopback.c

index 7d582cd..c1943f2 100644 (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,