From patchwork Sun Jan 17 09:03:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 8050191 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@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 7053EBEEE5 for ; Sun, 17 Jan 2016 09:04:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73873202FF for ; Sun, 17 Jan 2016 09:04:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90ED6202F8 for ; Sun, 17 Jan 2016 09:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752118AbcAQJDe (ORCPT ); Sun, 17 Jan 2016 04:03:34 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35944 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbcAQJDb (ORCPT ); Sun, 17 Jan 2016 04:03:31 -0500 Received: by mail-wm0-f67.google.com with SMTP id l65so10762604wmf.3; Sun, 17 Jan 2016 01:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=UslhKJvg3QKofamfbE3lCWz1RWbIQduvVnwF1bLAp/k=; b=mtsrgemWbE1RE1UDKL/36HICc+PfXDaoLhVOhvCnqeY8DCJI8vMxMu4y0Dt8WQdZoU rkJZ/NIZqlgKsd6p0MLcz+ePA7pdG/kx1/HiLSKQYrqmJap5dPZhhCZd1MC7XNXPUweZ t+10i9xm+E0QF66izFwsZjoffRnPNG+uSRQZARxMNEK5eNvIAfaCR+NN2Fo6jJWzD78E bLcbO67jgpSZJ467hvr//aqHOKmO21s6RAxCcijObXJzd0vDEuxYAKgv6CZ9htI6o5yc q+RhD+amxfZhY+dptBJUypaphCoGeXdrMG4vRFiNMvejy9xNIwqNayBXi9Rxur2saRMV eauQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=UslhKJvg3QKofamfbE3lCWz1RWbIQduvVnwF1bLAp/k=; b=dBfDgq0e+VcyFzbd/RGShDOeHFgeyrxaB9hdzjcu4Et6NWBPYo5yKY+f6cMeSVDqAU hSkMYKjYAJ+tCHLEmX4PrAWtn4vxMPeds3ZJhi9LKJnI5IcpnGJbcENpuBUTXVTwRwE7 5Polf9dBgO0sbxgGRvKVKYeupiadUOLfrQvuOivSKEeLcjGC6Wgl5RprvRPMVBCpUyfD X4T6HnPj6dt7xOO2soDEx3kSz4f4Eega4KuTr9yzOUO0pSy8lkoN2RfJ2uZGo+zfR7fm rTimWMkvuxy5aqsO2gsH8xx8Ay+LEjM152d5bJFF22I2/lKNIeLRGrccrOWTbMg00red zQIQ== X-Gm-Message-State: AG10YOTC8JxviBCdMl/1w98cZJc1/1aaBqRHK7lULhQXLAwcY0nAkUp89KKpDFxRmJDb7w== X-Received: by 10.28.107.81 with SMTP id g78mr6941993wmc.16.1453021409853; Sun, 17 Jan 2016 01:03:29 -0800 (PST) Received: from skynet.lan (140.Red-83-35-232.dynamicIP.rima-tde.net. [83.35.232.140]) by smtp.gmail.com with ESMTPSA id x6sm18321262wje.38.2016.01.17.01.03.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Jan 2016 01:03:28 -0800 (PST) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, f.fainelli@gmail.com, jogo@openwrt.org, cernekee@gmail.com Cc: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Subject: [PATCH 1/4] hw_random: bcm63xx-rng: remove unused variables Date: Sun, 17 Jan 2016 10:03:54 +0100 Message-Id: <1453021437-12531-1-git-send-email-noltari@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 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=ham 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 These variables where left as unused in commit 6229c16060fe ("hwrng: bcm63xx - make use of devm_hwrng_register") Fixes the following warning: drivers/char/hw_random/bcm63xx-rng.c: In function 'bcm63xx_rng_probe': drivers/char/hw_random/bcm63xx-rng.c:85:16: warning: unused variable 'rng' [-Wunused-variable] struct hwrng *rng; ^ drivers/char/hw_random/bcm63xx-rng.c:82:14: warning: unused variable 'clk' [-Wunused-variable] struct clk *clk; Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- drivers/char/hw_random/bcm63xx-rng.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c index 4b31f13..c303f30 100644 --- a/drivers/char/hw_random/bcm63xx-rng.c +++ b/drivers/char/hw_random/bcm63xx-rng.c @@ -79,10 +79,8 @@ static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data) static int bcm63xx_rng_probe(struct platform_device *pdev) { struct resource *r; - struct clk *clk; int ret; struct bcm63xx_rng_priv *priv; - struct hwrng *rng; r = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!r) {