Skip to content

Commit 2667a68

Browse files
GustavoARSilvawsakernel
authored andcommitted
i2c: npcm7xx: Remove unnecessary parentheses
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>
1 parent f547369 commit 2667a68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-npcm7xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ static int npcm_i2c_probe_bus(struct platform_device *pdev)
22482248

22492249
bus->reg = devm_platform_ioremap_resource(pdev, 0);
22502250
if (IS_ERR(bus->reg))
2251-
return PTR_ERR((bus)->reg);
2251+
return PTR_ERR(bus->reg);
22522252

22532253
spin_lock_init(&bus->lock);
22542254
init_completion(&bus->cmd_complete);

0 commit comments

Comments
 (0)