]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/fbsd-device.c
libpci: Add separate file for bit manipulation functions
[pciutils.git] / lib / fbsd-device.c
index 91d391b4b34e753842d1b99f344295565eae78e2..2ea5e84402e690ddbbacb2687867792104bad1c3 100644 (file)
@@ -5,7 +5,9 @@
  *     Updated in 2003 by Samy Al Bahra <samy@kerneled.com>
  *     Updated in 2017 by Imre Vadász <imrevdsz@gmail.com>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #include <errno.h>
@@ -224,7 +226,7 @@ fbsd_fill_info(struct pci_dev *d, unsigned int flags)
          if (ioctl(d->access->fd, PCIOCGETBAR, &bar) < 0)
            {
              if (errno == ENODEV)
-               return 0;
+               return;
              if (errno == EINVAL)
                {
                  d->base_addr[i] = 0;