Преглед на файлове

mmc: mmc_test: Remove set-but-unused variable.

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 <cjb@laptop.org>
Cc: Adrian Hunter <adrian.hunter@nokia.com>
Chris Ball преди 14 години
родител
ревизия
5a8fba524c
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      drivers/mmc/card/mmc_test.c

+ 1 - 2
drivers/mmc/card/mmc_test.c

@@ -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 tot_sz, int max_scatter)
 {
 {
 	unsigned int dev_addr, i, cnt, sz, ssz;
 	unsigned int dev_addr, i, cnt, sz, ssz;
-	struct timespec ts1, ts2, ts;
+	struct timespec ts1, ts2;
 	int ret;
 	int ret;
 
 
 	sz = test->area.max_tfr;
 	sz = test->area.max_tfr;
@@ -1912,7 +1912,6 @@ static int mmc_test_seq_perf(struct mmc_test_card *test, int write,
 	}
 	}
 	getnstimeofday(&ts2);
 	getnstimeofday(&ts2);
 
 
-	ts = timespec_sub(ts2, ts1);
 	mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2);
 	mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2);
 
 
 	return 0;
 	return 0;