summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorHans Zhang <18255117159@163.com>2026-03-15 23:53:51 +0800
committerManivannan Sadhasivam <mani@kernel.org>2026-03-26 23:39:12 +0530
commit99d986686331ba3fd58dffb312e282d2bf81ee72 (patch)
treea51df3669180e3a31aa8f247bf79ad8ccc4b1c1a /drivers/pci
parent72e76b63d6ff6d1f96acccbfc6c118656f63e66a (diff)
PCI: sky1: Use boolean true for is_rc field
The is_rc field in struct cdns_pcie is of type bool. Replace the integer assignment (1) with the boolean literal true to improve code clarity and maintain consistency with the type definition. Signed-off-by: Hans Zhang <18255117159@163.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20260315155351.127078-1-18255117159@163.com
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/cadence/pci-sky1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/cadence/pci-sky1.c b/drivers/pci/controller/cadence/pci-sky1.c
index 9853a9c82c0e..cd55c64e58a9 100644
--- a/drivers/pci/controller/cadence/pci-sky1.c
+++ b/drivers/pci/controller/cadence/pci-sky1.c
@@ -173,7 +173,7 @@ static int sky1_pcie_probe(struct platform_device *pdev)
cdns_pcie->ops = &sky1_pcie_ops;
cdns_pcie->reg_base = pcie->reg_base;
cdns_pcie->msg_res = pcie->msg_res;
- cdns_pcie->is_rc = 1;
+ cdns_pcie->is_rc = true;
reg_off = devm_kzalloc(dev, sizeof(*reg_off), GFP_KERNEL);
if (!reg_off) {