]> 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)
commit4d474ec1888abe7100c7aabf709eb6b0562a5bff
treeb70d1e4c86993cf32aac9d00b2a826ac48491ee8
parent6771240f88cc9ed11d75b7bf0b2c1d5aea9ea282
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