diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index 3639f00d41ea..1176b16f307e 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -139,7 +139,7 @@ main(int argc, char **argv) || (writemode && optind + 3 != argc) || (readmode && optind + 2 != argc) || (attachedmode && optind + 1 != argc) - || (barmode && optind + 1 != argc) + || (barmode && optind + 1 != argc)) usage(); if (listmode) { @@ -515,7 +515,7 @@ dobar(const char *name) */ for (i = 0; i < NBAR; i++) { if (bars[i] == 0) - next; + continue; if (bars[i] & 1) { /* I/O bar */ } else {