diff mbox series

i2c: npcm7xx: Remove unnecessary parentheses

Message ID 20200604153957.GA14839@embeddedor
State Accepted
Headers show
Series i2c: npcm7xx: Remove unnecessary parentheses | expand

Commit Message

Gustavo A. R. Silva June 4, 2020, 3:39 p.m. UTC
Remove unnecessary parentheses around _bus_.

This issue was found with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
---
 drivers/i2c/busses/i2c-npcm7xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang June 7, 2020, 9:21 a.m. UTC | #1
On Thu, Jun 04, 2020 at 10:39:57AM -0500, Gustavo A. R. Silva wrote:
> Remove unnecessary parentheses around _bus_.
> 
> This issue was found with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c
index a8e75c3484f12..68951a293aae3 100644
--- a/drivers/i2c/busses/i2c-npcm7xx.c
+++ b/drivers/i2c/busses/i2c-npcm7xx.c
@@ -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);