From patchwork Mon Jan 23 11:53:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9532327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E0D46042D for ; Mon, 23 Jan 2017 11:55:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1010C26CFC for ; Mon, 23 Jan 2017 11:55:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 028C827D85; Mon, 23 Jan 2017 11:55:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A0C1D26CFC for ; Mon, 23 Jan 2017 11:55:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVdDU-0007f5-K9; Mon, 23 Jan 2017 11:55:20 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVdDE-0006DX-6X for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 11:55:07 +0000 Received: by mail-wm0-f67.google.com with SMTP id d140so25897078wmd.2 for ; Mon, 23 Jan 2017 03:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=a18U1f0STeCoIzYHonXvG+U5Bb/ThlBV8t2McMslkYA=; b=N0tFhaiIPdCgcc2nhte8JdQqX3ojZe4sgi0nrdATYWtVku5+2N7j46dAjOq/4M5wLz QhljUtPpgHiZn0i4bO52JI9zdUc7P+evIyYvhYElKh+QWi/lO1MzKM4VAw7gjp3uLaXf oFl1j/JepkdQC2pxYsaJlCZ0BaJl4Z0cvTsiL3j3E/RcnhWoGYlCZrihIz4qFx1FQNUB 8oGgPjPfdFoZdtYkor3I/rksXk2FEB/xIC6Wd/mdzb/glqkYRyCYUCS1XV8dTEZ/nJTy JAkPGV2YqVFA2fTGJWau3M3l7e0WsnMsWpu27GKEeDVkp+HIfig+bewnzckxSWpysgtZ wRQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=a18U1f0STeCoIzYHonXvG+U5Bb/ThlBV8t2McMslkYA=; b=Q6+6+v1qE7WZJolCyFHr59jlTECVwQdrSkdIBmKy5IqYWc1hJlqAQCs8LC/zxSBKvE qlNscUQUewisKqXxTevKp607FEHeJGeZUNR96Fch3CCBJSxDxeWk9eVmDEx/G6SO4d5I rZCsb3GA00VjxWMep7cbnZ68r4nR6BFvvH8/YHWvhY10TFe3r7pl/LWH3jA0JeZ3sZSw pEqq56KptYj9AJ8YCUPGMyw2EXcRI0JxzamSkxeZkkB1Tc6WE4XTf/5PtuMpb1ortU1v sUmoOjlk14bAU+cFG7UJTxByIpdQtOjA+BZs17j6rq9dNPDZ19Stw1mTGOjRIG5CKyeD vW0w== X-Gm-Message-State: AIkVDXKgsMWwasMKMQObLQIMhSz8jmfslsAoAWDUU+O69xrV7ookvZ/U72yvubIFyWM6Fw== X-Received: by 10.28.173.74 with SMTP id w71mr12555321wme.14.1485172421426; Mon, 23 Jan 2017 03:53:41 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id f126sm20683590wme.22.2017.01.23.03.53.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 23 Jan 2017 03:53:40 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Subject: [PATCH] char: xilinx_hwicap: Remove pointless local variables Date: Mon, 23 Jan 2017 12:53:36 +0100 Message-Id: <74883b63b1a4a0273c7d049c2e9d54dfd58ffde3.1485172413.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_035504_450829_14F4562C X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , Arnd Bergmann , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , David Binderman MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused variables which generates these warnings: [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:301]: (style) Variable 'num_writes' is modified but its new value is never used. [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:356]: (style) Variable 'read_count' is modified but its new value is never used. Reported-by: David Binderman Signed-off-by: Michal Simek --- drivers/char/xilinx_hwicap/buffer_icap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/char/xilinx_hwicap/buffer_icap.c b/drivers/char/xilinx_hwicap/buffer_icap.c index 53c3882e4981..35981cae1afa 100644 --- a/drivers/char/xilinx_hwicap/buffer_icap.c +++ b/drivers/char/xilinx_hwicap/buffer_icap.c @@ -269,7 +269,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, { int status; s32 buffer_count = 0; - s32 num_writes = 0; bool dirty = false; u32 i; void __iomem *base_address = drvdata->base_address; @@ -298,7 +297,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, } buffer_count = 0; - num_writes++; dirty = false; } @@ -328,7 +326,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, { int status; s32 buffer_count = 0; - s32 read_count = 0; u32 i; void __iomem *base_address = drvdata->base_address; @@ -353,7 +350,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, } buffer_count = 0; - read_count++; } /* Copy data from bram */