Message ID | 1558642464-9946-2-git-send-email-alan.mikhak@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | tools: PCI: Fix broken pcitest compilation | expand |
On Thu, 23 May 2019, Alan Mikhak wrote: > From: Alan Mikhak <alan.mikhak@sifive.com> Please drop this line. > Fixes: fef31ecaaf2c ("tools: PCI: Fix compilation warnings") This goes down below with the Signed-off-by: lines. - Paul
diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c index 5fa5c2bdd427..6dce894667f6 100644 --- a/tools/pci/pcitest.c +++ b/tools/pci/pcitest.c @@ -47,15 +47,15 @@ struct pci_test { unsigned long size; }; -static void run_test(struct pci_test *test) +static int run_test(struct pci_test *test) { - long ret; + int ret = -EINVAL; int fd; fd = open(test->device, O_RDWR); if (fd < 0) { perror("can't open PCI Endpoint Test device"); - return; + return -ENODEV; } if (test->barnum >= 0 && test->barnum <= 5) {