Skip to contentSkip to conversation

PCI: mediatek-gen3: Remove unneeded semicolon

PATCH Applied Yang Li 4 participants 4 messages Nov 11, 2024 – Nov 13, 2024

Subsystems (4)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 PCI: mediatek-gen3: Remove unneeded semicolon

This patch removes an redundant semicolon.

./drivers/pci/controller/pcie-mediatek-gen3.c:414:2-3: Unneeded semicolon

---
 drivers/pci/controller/pcie-mediatek-gen3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
index f333afb92a21..be52e3a123ab 100644
@@ -411,7 +411,7 @@ static int mtk_pcie_startup_port(struct mtk_gen3_pcie *pcie)
 		if (pcie->num_lanes > 1)
 			val |= FIELD_PREP(PCIE_SETTING_LINK_WIDTH,
 					  GENMASK(fls(pcie->num_lanes >> 2), 0));
-	};
+	}
 	writel_relaxed(val, pcie->base + PCIE_SETTING_REG);
 
 	/* Set Link Control 2 (LNKCTL2) speed restriction, if any */
Signature · 1 line
2.32.0.3.g01195cf9f
maintainer Reviewed-by on v1 1/1
#1 lore raw

Il 11/11/24 02:09, Yang Li ha scritto:

Quoted 8 lines

This patch removes an redundant semicolon.

./drivers/pci/controller/pcie-mediatek-gen3.c:414:2-3: Unneeded semicolon

Quoted 17 lines
---
  drivers/pci/controller/pcie-mediatek-gen3.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
index f333afb92a21..be52e3a123ab 100644
@@ -411,7 +411,7 @@ static int mtk_pcie_startup_port(struct mtk_gen3_pcie *pcie)
  		if (pcie->num_lanes > 1)
  			val |= FIELD_PREP(PCIE_SETTING_LINK_WIDTH,
  					  GENMASK(fls(pcie->num_lanes >> 2), 0));
-	};
+	}
  	writel_relaxed(val, pcie->base + PCIE_SETTING_REG);
 
  	/* Set Link Control 2 (LNKCTL2) speed restriction, if any */
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Yang Li
Quoted 8 lines · Yang Li

This patch removes an redundant semicolon.

./drivers/pci/controller/pcie-mediatek-gen3.c:414:2-3: Unneeded semicolon

Quoted 17 lines
---
  drivers/pci/controller/pcie-mediatek-gen3.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
index f333afb92a21..be52e3a123ab 100644
@@ -411,7 +411,7 @@ static int mtk_pcie_startup_port(struct mtk_gen3_pcie *pcie)
  		if (pcie->num_lanes > 1)
  			val |= FIELD_PREP(PCIE_SETTING_LINK_WIDTH,
  					  GENMASK(fls(pcie->num_lanes >> 2), 0));
-	};
+	}
  	writel_relaxed(val, pcie->base + PCIE_SETTING_REG);
 
  	/* Set Link Control 2 (LNKCTL2) speed restriction, if any */