]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Make pci_bus_add_device() void
authorYijing Wang <wangyijing@huawei.com>
Fri, 30 May 2014 03:01:03 +0000 (11:01 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 May 2014 15:34:27 +0000 (09:34 -0600)
commit3fb4fa9209495115d601f8e4b165de6405ed6663
tree2f296b5a88e4e794fb48d4c22c8108ce6f671bbc
parentea32b9b6f66e4fec55201685fd551a8a1d539ad7
PCI: Make pci_bus_add_device() void

pci_bus_add_device() always returns 0, so there's no point in returning
anything at all.  Make it a void function and remove the tests of the
return value from the callers.

[bhelgaas: changelog, remove unused "err" from i82875p_setup_overfl_dev()]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/edac/i82875p_edac.c
drivers/pci/bus.c
drivers/pci/iov.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/eeepc-laptop.c
include/linux/pci.h