Skip to content

Commit eb717db

Browse files
kwilczynskikelvin-cao
authored andcommitted
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/[email protected] Signed-off-by: Krzysztof Wilczynski <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]>
1 parent cbeb936 commit eb717db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int max_devices = 16;
3636
module_param(max_devices, int, 0644);
3737
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
3838

39-
static bool use_dma_mrpc = 1;
39+
static bool use_dma_mrpc = true;
4040
module_param(use_dma_mrpc, bool, 0644);
4141
MODULE_PARM_DESC(use_dma_mrpc,
4242
"Enable the use of the DMA MRPC feature");

0 commit comments

Comments
 (0)