提交 b8af8549 编写于 作者: K Krzysztof Wilczynski 提交者: Bjorn Helgaas

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.comSigned-off-by: NKrzysztof Wilczynski <kw@linux.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NLogan Gunthorpe <logang@deltatee.com>
上级 8f3d9f35
...@@ -25,7 +25,7 @@ static int max_devices = 16; ...@@ -25,7 +25,7 @@ static int max_devices = 16;
module_param(max_devices, int, 0644); module_param(max_devices, int, 0644);
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances"); MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
static bool use_dma_mrpc = 1; static bool use_dma_mrpc = true;
module_param(use_dma_mrpc, bool, 0644); module_param(use_dma_mrpc, bool, 0644);
MODULE_PARM_DESC(use_dma_mrpc, MODULE_PARM_DESC(use_dma_mrpc,
"Enable the use of the DMA MRPC feature"); "Enable the use of the DMA MRPC feature");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册