linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: npcm7xx: Remove unnecessary parentheses
@ 2020-06-04 15:39 Gustavo A. R. Silva
  2020-06-07  9:21 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo A. R. Silva @ 2020-06-04 15:39 UTC (permalink / raw)
  To: Tali Perry, Wolfram Sang; +Cc: linux-i2c, linux-kernel, Gustavo A. R. Silva

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(-)

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);
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c: npcm7xx: Remove unnecessary parentheses
  2020-06-04 15:39 [PATCH] i2c: npcm7xx: Remove unnecessary parentheses Gustavo A. R. Silva
@ 2020-06-07  9:21 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2020-06-07  9:21 UTC (permalink / raw)
  To: Gustavo A. R. Silva
  Cc: Tali Perry, linux-i2c, linux-kernel, Gustavo A. R. Silva

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

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!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-07  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 15:39 [PATCH] i2c: npcm7xx: Remove unnecessary parentheses Gustavo A. R. Silva
2020-06-07  9:21 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).