freebsd-dev/usr.sbin/pciconf
Dimitry Andric 3f7acdfe6e Fix the following clang 3.6.0 warnings in pciconf:
usr.sbin/pciconf/pciconf.c:237:12: error: address of array 'p->pd_name' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                            (p->pd_name && *p->pd_name) ? p->pd_name :
                             ~~~^~~~~~~ ~~
usr.sbin/pciconf/pciconf.c:239:12: error: address of array 'p->pd_name' will
always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                            (p->pd_name && *p->pd_name) ? (int)p->pd_unit :
                             ~~~^~~~~~~ ~~

The pd_name field of struct pci_conf is an array, so it can never be null.
Remove the unnecessary check.
2015-01-28 21:21:35 +00:00
..
cap.c Print status of ARI capability in pciconf -c 2014-04-01 16:03:52 +00:00
err.c Align the PCI Express #defines with the style used for the PCI-X 2012-09-18 22:04:59 +00:00
Makefile Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headers 2013-02-05 18:55:09 +00:00
pathnames.h
pciconf.8 Add support for displaying VPD for PCI devices via pciconf. 2014-01-20 20:56:09 +00:00
pciconf.c Fix the following clang 3.6.0 warnings in pciconf: 2015-01-28 21:21:35 +00:00
pciconf.h Add a new -e flag to pciconf(8)'s list mode to display PCI error details. 2012-06-01 18:33:40 +00:00