All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c/busses:remove unneeded "ret" variables in the i2c-s3c2410.c
@ 2021-02-23  2:52 ` dingsenjie
  0 siblings, 0 replies; 2+ messages in thread
From: dingsenjie @ 2021-02-23  2:52 UTC (permalink / raw)
  To: krzk, linux-arm-kernel
  Cc: linux-i2c, linux-samsung-soc, linux-kernel, dingsenjie

From: dingsenjie <dingsenjie@yulong.com>

remove unneeded "ret" variables in the i2c-s3c2410.c.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
 drivers/i2c/busses/i2c-s3c2410.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index 3eafe0e..be8f2da 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -388,7 +388,6 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
 {
 	unsigned long tmp;
 	unsigned char byte;
-	int ret = 0;
 
 	switch (i2c->state) {
 
@@ -548,7 +547,7 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
 	tmp &= ~S3C2410_IICCON_IRQPEND;
 	writel(tmp, i2c->regs + S3C2410_IICCON);
  out:
-	return ret;
+	return 0;
 }
 
 /*
-- 
1.9.1



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

* [PATCH] i2c/busses:remove unneeded "ret" variables in the i2c-s3c2410.c
@ 2021-02-23  2:52 ` dingsenjie
  0 siblings, 0 replies; 2+ messages in thread
From: dingsenjie @ 2021-02-23  2:52 UTC (permalink / raw)
  To: krzk, linux-arm-kernel
  Cc: dingsenjie, linux-samsung-soc, linux-i2c, linux-kernel

From: dingsenjie <dingsenjie@yulong.com>

remove unneeded "ret" variables in the i2c-s3c2410.c.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
 drivers/i2c/busses/i2c-s3c2410.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index 3eafe0e..be8f2da 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -388,7 +388,6 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
 {
 	unsigned long tmp;
 	unsigned char byte;
-	int ret = 0;
 
 	switch (i2c->state) {
 
@@ -548,7 +547,7 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
 	tmp &= ~S3C2410_IICCON_IRQPEND;
 	writel(tmp, i2c->regs + S3C2410_IICCON);
  out:
-	return ret;
+	return 0;
 }
 
 /*
-- 
1.9.1



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-02-23  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23  2:52 [PATCH] i2c/busses:remove unneeded "ret" variables in the i2c-s3c2410.c dingsenjie
2021-02-23  2:52 ` dingsenjie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.