From patchwork Thu Jul 16 20:36:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Laurent Navet [Mali]" X-Patchwork-Id: 6810851 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 86B80C05AC for ; Thu, 16 Jul 2015 20:28:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC50220742 for ; Thu, 16 Jul 2015 20:28:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 668FE20739 for ; Thu, 16 Jul 2015 20:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbbGPU2i (ORCPT ); Thu, 16 Jul 2015 16:28:38 -0400 Received: from mail-wi0-f196.google.com ([209.85.212.196]:36478 "EHLO mail-wi0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751078AbbGPU2h (ORCPT ); Thu, 16 Jul 2015 16:28:37 -0400 Received: by wilh8 with SMTP id h8so2527480wil.3; Thu, 16 Jul 2015 13:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m7qNnohJIzwbPi2DqPsnzqppxkkCWlwQgxs5kz7NfCk=; b=YSGhURdcrpxLLwf3cPlQ6gF7rvuE0xxpdiaQdN3aVpVZjQscqxsrLcuuZUWAvf1Avm Bvi1yEpHFQSzuJpw5Pnv3eai62MPujQ1pqPPo4mkyMYZuBql6L+p05GPiBm8z1iQI69+ IDVeOKljdOI51M8WteUmL0VTlJxklIypb7lTCpdh2TpZ7O1LiAs80dKAdUNLCbgIP1LU hgdBH8EhrHB6SdlInPAkOPzvFZiMHtkmzHQFjFGe+Criec2H1AIjUGjTIOXYpJYcVNPU 46Lc4E81u7822ht9ihQowJZP07aGHG/pKtd012OG16WR5bUtj64XXTS3/KmHWPzYkk1d 9o7A== X-Received: by 10.194.122.132 with SMTP id ls4mr21138105wjb.130.1437078516123; Thu, 16 Jul 2015 13:28:36 -0700 (PDT) Received: from paddy.home (ANantes-659-1-219-248.w2-1.abo.wanadoo.fr. [2.1.106.248]) by smtp.gmail.com with ESMTPSA id pd7sm14836762wjb.27.2015.07.16.13.28.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jul 2015 13:28:35 -0700 (PDT) From: Laurent Navet To: kgene@kernel.org, k.kozlowski@samsung.com, wsa@the-dreams.de Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Navet Subject: [PATCH] i2c: s3c2410: remove unused variable Date: Thu, 16 Jul 2015 22:36:16 +0200 Message-Id: <1437078976-29145-1-git-send-email-laurent.navet@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ret is assigned zero and just used to return. remove it. Found by using coccinelle. Signed-off-by: Laurent Navet --- 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 50bfd8c..cf3c6c0 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -409,7 +409,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) { @@ -565,7 +564,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; } /* s3c24xx_i2c_irq