Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1262437pxb; Thu, 16 Sep 2021 03:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC6pjtidrkoxjzqGnsvZQE7cliWU1I9zEoY+pXNj51fuPQVuWQJ5BxG7oN4tPke9KAvqpl X-Received: by 2002:a05:6638:304b:: with SMTP id u11mr3706351jak.97.1631788873130; Thu, 16 Sep 2021 03:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631788873; cv=none; d=google.com; s=arc-20160816; b=cL0P+qQIIrQuGAR0utfj4t7hQMirpXPqUBebda1Pi/GDoWoU0J2NiMXpnesM0l/aH1 q2HTqVfGsx7HGvDT7Y3z5lF0rR5r7FFSWy778vv8O4O2BjWwPpiSNn6m95/rhn8e+qZE YstFXsdE1aO5OW+WPL2rksxHr3aaxPKdNigGA+31rr8Fj8IemxpkgKvn/VU/yV+jioqr zWP2etei9gc36stNj70nxHpM65oHhdJGdaSo6QF4tuytGCPAV0syHh7I/3heLQATa/YW v66IfmIVp60Vi8yCuXg8SeYsS3xxh0Sze/GdRsLHZ1uTh6wjnjZP51PAeRco2wmaqxWg btJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=1Syq6rUGZA888Cj2SmNwezuRys2a8Oj/a/Uk9yShpFk=; b=gE3Ufixy3dORamRuck2LPA1a6it0bfA7UCzdD2/Ny7x7ZAPMYIvsdfM+q+FXxNTwOe fZGyEeE51VjZj6AcZ5UMh8x5Qs8hGSNxGXVoI4F6u9zPX4pu0gaMgSIcqkIxaeJrdPbV 2yhC9TbLCixiwRDF58elGzJ84AatmSVTnBrK0YmSbuac81BML9NI/O9aX2QqPpk8sPHo r2aKIQ+/uXkO2V2KsJOazR35QJOD3fFazMWcTuG2FA1oKyqTFLSoXs6HL5KOAmlsQJ/T VdUajAt88gfrYUK66+QQZTT5eGZJB4NR7K3EQ0kPnfhWtstFqWl3Oe/gLRRHJkG2UeqC bb8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 131si2333064ioa.3.2021.09.16.03.41.00; Thu, 16 Sep 2021 03:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236915AbhIPKkL (ORCPT + 99 others); Thu, 16 Sep 2021 06:40:11 -0400 Received: from smtpbg127.qq.com ([109.244.180.96]:37860 "EHLO smtpbg.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235570AbhIPKkJ (ORCPT ); Thu, 16 Sep 2021 06:40:09 -0400 X-QQ-mid: bizesmtp36t1631788681tok7ihe5 Received: from localhost.localdomain (unknown [180.113.36.229]) by esmtp6.qq.com (ESMTP) with id ; Thu, 16 Sep 2021 18:37:24 +0800 (CST) X-QQ-SSF: 0100000000800020B000000A0000000 X-QQ-FEAT: 1J4SMhVdN4aJcLFYB1i5sJBt4BhFiHrQLJ8+T73NsnpwOLTQYmBp2k0Hb5f4p 6EuUGxWRSt7Q/2HLtIdDxPyWKDzq4FV9Keez1f2ErgnB76uNiFdIdl3ZE9fYJXYPyrZND4+ VjI2U+PSp0dvMM1hebi/8InhE0swG8UOtSlNiJlsfEQk8QEVuZfLJvqH8ByamMrV4CYJ+yC tJO/B78ixp9mko0icQ/8M3W3x/uYjdY8dAYgJ8f7dbd/ieQxCSg+tjUxnx75s+iK+JdoFaR qWOoDzC5098biAxL1hWNMa698r3saoA9HYK+TMzz5syH9xboNxTt05XgTZkhX56oe+dH/uq blR1dLK32sm02l5wpc= X-QQ-GoodBg: 0 From: Xiang wangx To: krzysztof.kozlowski@canonical.com Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Xiang wangx Subject: [PATCH] i2c: s3c2410: Delete unneeded variable: "ret" Date: Thu, 16 Sep 2021 18:37:18 +0800 Message-Id: <20210916103718.29956-1-wangxiang@cdjrlc.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org variable: "ret" defined but not used in function "i2c_s3c_irq_nextbyte" Signed-off-by: Xiang wangx --- 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 b49a1b170bb2..6df85b23156c 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -385,7 +385,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; } /* -- 2.20.1