Skip to content

Commit

Permalink
mmc: mmc_test: Remove set-but-unused variable.
Browse files Browse the repository at this point in the history
Fixes:

drivers/mmc/card/mmc_test.c: In function ‘mmc_test_seq_perf’:
drivers/mmc/card/mmc_test.c:1878:28: warning: variable ‘ts’ set but not
used [-Wunused-but-set-variable]

There's no reason to be calling timespec_sub() here, because
mmc_test_print_avg_rate() is going to do that itself.

Signed-off-by: Chris Ball <[email protected]>
Cc: Adrian Hunter <[email protected]>
  • Loading branch information
cjb committed Mar 25, 2011
1 parent d39dd11 commit 5a8fba5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/card/mmc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ 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;
Expand Down Expand Up @@ -1912,7 +1912,6 @@ static int mmc_test_seq_perf(struct mmc_test_card *test, int write,
}
getnstimeofday(&ts2);

ts = timespec_sub(ts2, ts1);
mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2);

return 0;
Expand Down

0 comments on commit 5a8fba5

Please sign in to comment.