From patchwork Sat Sep 12 23:19:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 7167671 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D62E69F1D3 for ; Sat, 12 Sep 2015 23:20:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0AA79206AA for ; Sat, 12 Sep 2015 23:20:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E24020855 for ; Sat, 12 Sep 2015 23:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755514AbbILXUa (ORCPT ); Sat, 12 Sep 2015 19:20:30 -0400 Received: from mail-yk0-f171.google.com ([209.85.160.171]:33877 "EHLO mail-yk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754890AbbILXU0 (ORCPT ); Sat, 12 Sep 2015 19:20:26 -0400 Received: by ykdg206 with SMTP id g206so123233301ykd.1 for ; Sat, 12 Sep 2015 16:20:25 -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:in-reply-to:references; bh=SVZTSYYqGHDi/a5MPiTg8JObw2cDwyTs2C+7XZjC8xo=; b=bjDLFV0W42DhFE2lwwUDnvn+VDGh6bjuiXt7x2CD2BMAEU32+od6NTEvY4eJjTbZtT mqOAvF/OWJ/ysnS1Cf2wlFpH5oD7TZdxuRra32xtWlV9uQnnYcxO43wBfagWp6YLnyfq KjZS32IcqlF6ctjCCCXwy+X2fKv9s9NxReh6MKLfaOCQciThvN9T+lmJ7le98Anl03DG k32MdH2qaJ5mLtAqFPa5LKiQHBPkCTlKqK5wsD49SdJHMG4X3JiJRQWrI3W4PMBQN7/g IA0771a2RF44UusxjVL2Z/YJZiQbXACf7Ms9NYDfH9DxQ5sQAHRW9n/5y41YHI9T+7gb zfeg== X-Received: by 10.13.208.70 with SMTP id s67mr5902961ywd.169.1442100025852; Sat, 12 Sep 2015 16:20:25 -0700 (PDT) Received: from localhost.localdomain ([179.159.191.85]) by smtp.gmail.com with ESMTPSA id h131sm4671183ywb.10.2015.09.12.16.20.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Sep 2015 16:20:25 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, Fabio Estevam Subject: [PATCH 2/4] hwrng: mxc-rnga - Remove uneeded initialization Date: Sat, 12 Sep 2015 20:19:51 -0300 Message-Id: <1442099993-29449-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442099993-29449-1-git-send-email-festevam@gmail.com> References: <1442099993-29449-1-git-send-email-festevam@gmail.com> 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 From: Fabio Estevam There is no need to pre-initialize variable 'err' as this initial value will be overwritten later on. Signed-off-by: Fabio Estevam --- drivers/char/hw_random/mxc-rnga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/mxc-rnga.c b/drivers/char/hw_random/mxc-rnga.c index 8803126..c7380b8 100644 --- a/drivers/char/hw_random/mxc-rnga.c +++ b/drivers/char/hw_random/mxc-rnga.c @@ -141,7 +141,7 @@ static void mxc_rnga_cleanup(struct hwrng *rng) static int __init mxc_rnga_probe(struct platform_device *pdev) { - int err = -ENODEV; + int err; struct resource *res; struct mxc_rng *mxc_rng;