]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/switchtec: Correct bool variable type assignment
authorKrzysztof Wilczynski <kw@linux.com>
Thu, 21 May 2020 20:04:39 +0000 (20:04 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 May 2020 20:21:53 +0000 (15:21 -0500)
commit6a1aeb0c6675af3f0f08e4f07a3cc54686af9520
treeeabef58fdb7ac85cf08d376b0fb7f71a89628e70
parent9b8057e7f937f20763a90a8fc2333168af101732
PCI/switchtec: Correct bool variable type assignment

Use "true" instead of 1 to initialize "bool use_dma_mrpc".  This resolves
the following Coccinelle warning:

  drivers/pci/switch/switchtec.c:28:12-24: WARNING: Assignment of 0/1 to bool variable

Link: https://lore.kernel.org/r/20200521200439.1076672-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/pci/switch/switchtec.c