Home Home > GIT Browse
summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (limited to 'drivers/mmc/card/mmc_test.c') (more/less context) (ignore whitespace changes)
-rw-r--r--drivers/mmc/card/mmc_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c
index 5ec8edd..f5cedec 100644
--- a/drivers/mmc/card/mmc_test.c
+++ b/drivers/mmc/card/mmc_test.c
@@ -1872,13 +1872,13 @@ static int mmc_test_random_write_perf(struct mmc_test_card *test)
}
static int mmc_test_seq_perf(struct mmc_test_card *test, int write,
unsigned int tot_sz, int max_scatter)
{
unsigned int dev_addr, i, cnt, sz, ssz;
- struct timespec ts1, ts2, ts;
+ struct timespec ts1, ts2;
int ret;
sz = test->area.max_tfr;
/*
* In the case of a maximally scattered transfer, the maximum transfer
* size is further limited by using PAGE_SIZE segments.
@@ -1909,13 +1909,12 @@ static int mmc_test_seq_perf(struct mmc_test_card *test, int write,
if (ret)
return ret;
dev_addr += ssz;
}
getnstimeofday(&ts2);
- ts = timespec_sub(ts2, ts1);
mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2);
return 0;
}
static int mmc_test_large_seq_perf(struct mmc_test_card *test, int write)