Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -53,9 +53,6 @@ struct gb_loopback_device {
	int ms_wait;
	int ms_wait;
	u32 error;
	u32 error;


	struct timeval start;
	struct timeval end;

	/* Overall stats */
	/* Overall stats */
	struct gb_loopback_stats latency;
	struct gb_loopback_stats latency;
	struct gb_loopback_stats throughput;
	struct gb_loopback_stats throughput;
@@ -577,8 +574,6 @@ static void gb_loopback_reset_stats(struct gb_loopback_device *gb_dev)
	}
	}


	/* Reset aggregate stats */
	/* 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->latency, &reset, sizeof(struct gb_loopback_stats));
	memcpy(&gb_dev->throughput, &reset, sizeof(struct gb_loopback_stats));
	memcpy(&gb_dev->throughput, &reset, sizeof(struct gb_loopback_stats));
	memcpy(&gb_dev->requests_per_second, &reset,
	memcpy(&gb_dev->requests_per_second, &reset,