summaryrefslogtreecommitdiff
path: root/tools/pci
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pci')
-rw-r--r--tools/pci/pcitest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c
index ec4d51f3308b..310a7e4850f6 100644
--- a/tools/pci/pcitest.c
+++ b/tools/pci/pcitest.c
@@ -140,6 +140,7 @@ static void run_test(struct pci_test *test)
}
fflush(stdout);
+ return (ret < 0) ? ret : 1 - ret; /* return 0 if test succeeded */
}
int main(int argc, char **argv)
@@ -228,6 +229,5 @@ usage:
return -EINVAL;
}
- run_test(test);
- return 0;
+ return run_test(test);
}