Skip to contentSkip to conversation

i2c: npcm7xx: Remove unnecessary parentheses

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Jun 4, 2020 – Jun 7, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: npcm7xx: Remove unnecessary parentheses

Remove unnecessary parentheses around _bus_.

This issue was found with the help of Coccinelle.

---
 drivers/i2c/busses/i2c-npcm7xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-npcm7xx.c +1 -1
index a8e75c3484f12..68951a293aae3 100644
@@ -2248,7 +2248,7 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
 
 	bus->reg = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(bus->reg))
-		return PTR_ERR((bus)->reg);
+		return PTR_ERR(bus->reg);
 
 	spin_lock_init(&bus->lock);
 	init_completion(&bus->cmd_complete);
Signature · 1 line
2.27.0