i2c: npcm7xx: Remove unnecessary parentheses
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 4 Jun 2020 15:39:57 +0000 (10:39 -0500)
committerWolfram Sang <wsa@kernel.org>
Sun, 7 Jun 2020 09:21:17 +0000 (11:21 +0200)
Remove unnecessary parentheses around _bus_.

This issue was found with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c

index a8e75c3484f1231e9784b1977f932703c9e8111e..68951a293aae32be02b4346dfefd3d508c8de6f0 100644 (file)
@@ -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);