summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/pci/pcitest.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c
index af146bb03b4d..ec4d51f3308b 100644
--- a/tools/pci/pcitest.c
+++ b/tools/pci/pcitest.c
@@ -23,7 +23,6 @@
23#include <stdio.h> 23#include <stdio.h>
24#include <stdlib.h> 24#include <stdlib.h>
25#include <sys/ioctl.h> 25#include <sys/ioctl.h>
26#include <time.h>
27#include <unistd.h> 26#include <unistd.h>
28 27
29#include <linux/pcitest.h> 28#include <linux/pcitest.h>
@@ -48,17 +47,15 @@ struct pci_test {
48 unsigned long size; 47 unsigned long size;
49}; 48};
50 49
51static int run_test(struct pci_test *test) 50static void run_test(struct pci_test *test)
52{ 51{
53 long ret; 52 long ret;
54 int fd; 53 int fd;
55 struct timespec start, end;
56 double time;
57 54
58 fd = open(test->device, O_RDWR); 55 fd = open(test->device, O_RDWR);
59 if (fd < 0) { 56 if (fd < 0) {
60 perror("can't open PCI Endpoint Test device"); 57 perror("can't open PCI Endpoint Test device");
61 return fd; 58 return;
62 } 59 }
63 60
64 if (test->barnum >= 0 && test->barnum <= 5) { 61 if (test->barnum >= 0 && test->barnum <= 5) {