From patchwork Wed Feb 14 10:22:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10218347 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 69741601C2 for ; Wed, 14 Feb 2018 10:22:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5625D26253 for ; Wed, 14 Feb 2018 10:22:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42F7B256E6; Wed, 14 Feb 2018 10:22:43 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3073256E6 for ; Wed, 14 Feb 2018 10:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967071AbeBNKWl (ORCPT ); Wed, 14 Feb 2018 05:22:41 -0500 Received: from mout.web.de ([212.227.17.12]:33111 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966996AbeBNKWk (ORCPT ); Wed, 14 Feb 2018 05:22:40 -0500 Received: from [192.168.1.2] ([78.48.82.239]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MKIv4-1elLyV3vPi-001kjD; Wed, 14 Feb 2018 11:22:30 +0100 Subject: [PATCH 4/4] crypto: ux500: Delete two unnecessary variable initialisations in ux500_cryp_probe() From: SF Markus Elfring To: linux-crypto@vger.kernel.org, "David S. Miller" , Geliang Tang , Herbert Xu Cc: LKML , kernel-janitors@vger.kernel.org References: <20dcb583-5455-b5b9-94df-db9d1e21931f@users.sourceforge.net> Message-ID: Date: Wed, 14 Feb 2018 11:22:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20dcb583-5455-b5b9-94df-db9d1e21931f@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:I3dD7zDFNpbf2dUuifjIgP9nbJwfo6LkRD0qZgTbMLy6JQ60wz5 akZUsd8DxNH0kpU6SQuzTUTRaijsW11q3Jm3X6L+Kfrbx/VoJbm3ZQB6nHHM8pkDJINxnxD p/DvPjmPNCEquefL/qmJJoa06Cu/UjffBjIl2oKqsJYXAPsHjb1GQFZGKZVkXzCMDpTk5MH h1oEsk+5eBpIZRQcFgTrg== X-UI-Out-Filterresults: notjunk:1; V01:K0:nvrNXJIE0Wg=:9pIBBK48zZcjW4KWx5aJXj wLAr/43u/Vf1PEYP7MptuCLkM1DxEz2I9ZcBf36U7cFR2Cqxnj2G+BhFV6WeWJSn5OfctLCMn 2+Q2ea9mViGe8UuglAyufWh5H3cTZlvLzQSGnvVcIdxWPykZylJTcmr2u5stW4cfzINKU4r+P DXd2J5UCOnhVBrNL6S0Kh9Npmq+X1/fPzcUnlsa3iukoOlGHWBKoHu/vVmJEvWQRAFHofj8RP nu3Fmq+7P8+5cfDMZGunr5UsC4S4HW9upOlSoGYiMS1+35Ag5D26aCpG+RNfJ4F7ogNZPTGpm wGMhtuKYmIMiVvrhBBXtjq/9bsRbYUGYVd7l+9uVwwy684L1apMLlSbfJFIG2Sq28GhjkayVm S0Ge1gWnAV42xeefJvnEFm/LuPagsg6t4JJ3PXd6ruCsc09YraiSXKB+XwN3aimkgaM4hUX36 7CBCKeYbo1Vx9Y/0owUWjKoa9D1D72t8CrXfb4zLZHJb7tQ2uMC3Y6d9GXBWat5ISWqHjt9H4 AVKLH3l2LzaDLVYOOttXr+cQV1ffRJ8MwrBjvX/00a+2CsLgdW11qyZ5IOrWl5k0Lx7svpwhj On3gHgsXRbPHt86CcR7bEdZ8fUGXXNewbWpZMua5GuuYdqU6qxd8d+leJl9haschvd9iEH4jU uQG30hWA6JAi8vZK7nloH4gQqkLPXz9jSjBD/vM9+ukT8r/ZCYkIKNS2yGQ2VCRZ3Jv63VaYJ LRWRP4DlnwschnA7IjGYUU94RpEVTYGKpG2dXY1hCi5n2Fyel/wee72UE+GkJvnmJG1YUVkyR ZFcjHAwQd9qEuYL8bfl0fpRq3EA8BcJCaJsrlfK9Pd5sQ6tD7s= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 14 Feb 2018 10:56:38 +0100 Two local variables will eventually be set to appropriate pointers a bit later. Thus omit their explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 7c811d7eb274..cb31b59c9d53 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1404,8 +1404,8 @@ static void cryp_algs_unregister_all(void) static int ux500_cryp_probe(struct platform_device *pdev) { int ret; - struct resource *res = NULL; - struct resource *res_irq = NULL; + struct resource *res; + struct resource *res_irq; struct cryp_device_data *device_data; struct cryp_protection_config prot = { .privilege_access = CRYP_STATE_ENABLE