]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Remove unnecessary messages for memory allocation failures
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 29 Dec 2017 11:15:16 +0000 (12:15 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Jan 2018 14:41:41 +0000 (08:41 -0600)
commit23011c4df6009719d1ae42d9977c0f22e01e0cc2
tree7fbfb980fd5bacb12d8a31633a771a0f96a7ef14
parente6e51f10d6fdd03c11ca54ae52a515b12e8ced7e
PCI: Remove unnecessary messages for memory allocation failures

Per e4d30a798861 ("checkpatch: attempt to find unnecessary 'out of memory'
messages"), when a memory allocation fails, the memory subsystem emits
generic "out of memory" messages (see slab_out_of_memory() for some of this
logging).  Therefore, additional error messages in the caller don't add
much value.

Remove messages that merely report "out of memory".

This preserves some messages that report additional information, e.g.,
allocation failures that mean we drop hotplug events.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[bhelgaas: changelog, squash patches, make similar changes to acpiphp,
cpqphp, ibmphp, keep warning when dropping hotplug event]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/ibmphp_core.c
drivers/pci/hotplug/ibmphp_pci.c
drivers/pci/hotplug/ibmphp_res.c
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/hotplug/pnv_php.c
drivers/pci/hotplug/shpchp_core.c
drivers/pci/setup-bus.c