[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210223025221.18028-1-dingsenjie@163.com>
Date: Tue, 23 Feb 2021 10:52:21 +0800
From: dingsenjie@....com
To: krzk@...nel.org, linux-arm-kernel@...ts.infradead.org
Cc: linux-i2c@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-kernel@...r.kernel.org, dingsenjie <dingsenjie@...ong.com>
Subject: [PATCH] i2c/busses:remove unneeded "ret" variables in the i2c-s3c2410.c
From: dingsenjie <dingsenjie@...ong.com>
remove unneeded "ret" variables in the i2c-s3c2410.c.
Signed-off-by: dingsenjie <dingsenjie@...ong.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
Powered by blists - more mailing lists