[PATCH] PCI: sky1: Use boolean true for is_rc field

Hans Zhang posted 1 patch 3 weeks, 1 day ago
drivers/pci/controller/cadence/pci-sky1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] PCI: sky1: Use boolean true for is_rc field
Posted by Hans Zhang 3 weeks, 1 day ago
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>
---
 drivers/pci/controller/cadence/pci-sky1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/cadence/pci-sky1.c b/drivers/pci/controller/cadence/pci-sky1.c
index d8c216dc120d..f327480c8615 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)
-- 
2.34.1
Re: [PATCH] PCI: sky1: Use boolean true for is_rc field
Posted by Manivannan Sadhasivam 1 week, 4 days ago
On Sun, 15 Mar 2026 23:53:51 +0800, Hans Zhang wrote:
> 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.

Applied, thanks!

[1/1] PCI: sky1: Use boolean true for is_rc field
      commit: 99d986686331ba3fd58dffb312e282d2bf81ee72

Best regards,
-- 
Manivannan Sadhasivam <mani@kernel.org>