diff options
| author | Bjorn Helgaas <[email protected]> | 2014-04-14 22:04:55 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2014-04-14 22:06:30 +0000 |
| commit | 8e56aed0b0579b667489bcb1d94c223726f0eaa1 (patch) | |
| tree | 0d8d63573c4115724bb4f540aa111705caaf6865 /net/unix/af_unix.c | |
| parent | Linux 3.15-rc1 (diff) | |
| download | kernel-8e56aed0b0579b667489bcb1d94c223726f0eaa1.tar.gz kernel-8e56aed0b0579b667489bcb1d94c223726f0eaa1.zip | |
PCI: hotplug: Remove unnecessary "dev->bus" test
Every pci_dev is on a valid pci_bus, so we don't need to test whether
dev->bus is NULL or not.
The only exceptions are a few legacy cases like alpha_core_agp_setup(),
parisc_agp_setup(), and megaraid's make_local_pdev(), where we allocate a
pci_dev with a NULL bus pointer. These are dubious uses (especially the
megaraid one), and I don't think it's possible to exercise this
pci_configure_slot() path with any of them.
Found by Coverity (CID 146446).
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
