]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Fix inverted condition of DMA mask setup warning
authorAlexander Lobakin <alobakin@pm.me>
Tue, 22 Dec 2020 15:07:43 +0000 (15:07 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 26 Dec 2020 03:58:42 +0000 (21:58 -0600)
commit1f991bb8b2541bcdd27394fa9730a3ae5f97e986
tree633a479b49b1e29e11256076fea907afcbada034
parent6a8a29b6dc0f534c51b2794eab53655c5295b4dd
PCI: dwc: Fix inverted condition of DMA mask setup warning

Commit a9e73b2fb85f ("PCI: dwc: Set 32-bit DMA mask for MSI target address
allocation") added dma_mask_set() call to explicitly set 32-bit DMA mask
for MSI message mapping, but for now it throws a warning on ret == 0, while
dma_set_mask() returns 0 in case of success.

Fix this by inverting the condition.

[bhelgaas: join string to make it greppable]
Fixes: a9e73b2fb85f ("PCI: dwc: Set 32-bit DMA mask for MSI target address allocation")
Link: https://lore.kernel.org/r/20201222150708.67983-1-alobakin@pm.me
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-designware-host.c