projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a1a3b
)
greybus: loopback: Drop unused timeval variables
author
Bryan O'Donoghue
<bryan.odonoghue@linaro.org>
Thu, 3 Dec 2015 17:29:40 +0000
(17:29 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/loopback.c
b/drivers/staging/greybus/loopback.c
index 7d582cd8127b0f903896908d989d8a1153a6ba21..c1943f2b83fb5d0923e6a34923cec50b09940c8c 100644
(file)
--- 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,