]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Don't warn when irq_create_affinity_masks() returns NULL
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Aug 2017 23:58:42 +0000 (18:58 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Aug 2017 23:58:42 +0000 (18:58 -0500)
commit4a55532ba060bfa1ef05f0d42682ab5552d4f73e
treeb70d1e4c86993cf32aac9d00b2a826ac48491ee8
parentb0da6e1204ca12a29206ce1246efb4eebf57c848
PCI/MSI: Don't warn when irq_create_affinity_masks() returns NULL

irq_create_affinity_masks() can return NULL on non-SMP systems, when there
are not enough "free" vectors available to spread, or if memory allocation
for the CPU masks fails.  Only the allocation failure is of interest, and
even then the system will work just fine except for non-optimally spread
vectors.  Thus remove the warnings.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
drivers/pci/msi.c