From patchwork Sat Oct 21 17:55:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10021479 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 DCC8960224 for ; Sat, 21 Oct 2017 17:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE20928793 for ; Sat, 21 Oct 2017 17:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1D7A28917; Sat, 21 Oct 2017 17:55:35 +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=unavailable 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 72ECF28793 for ; Sat, 21 Oct 2017 17:55:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932216AbdJURzV (ORCPT ); Sat, 21 Oct 2017 13:55:21 -0400 Received: from mout.web.de ([212.227.15.14]:55416 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932196AbdJURzU (ORCPT ); Sat, 21 Oct 2017 13:55:20 -0400 Received: from [192.168.1.2] ([78.49.207.83]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M9MDO-1dvY7F0W2o-00CgaK; Sat, 21 Oct 2017 19:55:11 +0200 Subject: [PATCH 2/2] crypto-testmgr: Delete an unnecessary variable initialisation in drbg_cavs_test() From: SF Markus Elfring To: linux-crypto@vger.kernel.org, "David S. Miller" , Herbert Xu Cc: LKML , kernel-janitors@vger.kernel.org References: <7c2b4df8-a04b-cacd-13ba-4d9afb346263@users.sourceforge.net> Message-ID: <9bd0533e-1bf3-a1c1-d84c-34ab4c511b78@users.sourceforge.net> Date: Sat, 21 Oct 2017 19:55:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <7c2b4df8-a04b-cacd-13ba-4d9afb346263@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:s/J2acVgowAhhUFo8oR5PqLxZqVlNKXf7dUY9fZ89B7bGvUqWBR oCWHZixd7MCOEa5a5kMaLgaLnfytrAkK663A6JZqOOv32DffAgfs5NFOsuYi1guQdSx3SVR Mkm2DUxYUZlsQELJriqtf3xDZip3zEfHGnutSa3Zs5pK9dGwkjyKM8fdl2A198ovymiz3EG uiPLgZxtgrzijAhCfe6DQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:jv0tGgpmSww=:2+mAcVn7y5YVM8wY6kLz00 ODnxYI45mZhVHZJxg4D1W7V/qIpRv/bTBSJMSQM8pkte0XHpRTBhHeZHE7FD1WLePzizze44M HLPGNlfkj3PG54tMsXB1+qpXSu0vZrHsoLsy8xXNZsJ5ZsX7vX9XZw7xGM60BNiujW+rwgt2l kijvnAkR30rPDZPdutVU9PrZ5WSnPVZRco65go4TrFfcVk6kZu51uKDj7F8z77/aTCMKEhzGA XZdIHc/O3Y5AM58HfBr1pFzUUbE7jDazWIkIg+6r9uL1mXboF/yeC8LAgF8bmpgCubrVOgocc 3W1WAeQtF4R5t8kJg/sZb/VY61JReOxKj9dIY6YjM33AM5QomYBny5Qabn6JjP38K2au4Z0CN BqapVBp5hHaT0YCgQYXi+EJWMZFUbTnO0ISn38ao7t3gy9QiZNFXAPhrZvuN95nXxbIsstxEK s1KZE3hcH7J5/dj8ElHKj0b/tUjDTW4r/ExsorjccTR+h/4Ft5urMj5Bl1vVezwdT62H8mWqo tDLV6mOCHSWIwCNFd9Pq8RzsXNvPZ6ARa//rqN9vA4p6Obp4+bjOfukyXdEuuggYGaQcdhxLv AKNNfZuSOngkGUbZQPaxCHbgLqpQhW5htwvPS9banwlFObnnRQLdAzRMdbT5Irwjfq2KgT3VZ ++/peSMpGNiU/3h9XHaE9wfmaxCTS+1BniSo8w38ULkOlJNJPeb6sbm3jebXS3F2rov5WMh3Y QDQXCZs//86Ea54MzEAIEmWvcArZ/7acbFBsvs/6ZzHFZC/oZditWI6H2sTbitBNwEx3ZQEEq 1I62ITmCFKkrEohGVp9iS2cJmdEOe+LXNA5r3Jb/k1AwBwGPyA= 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: Sat, 21 Oct 2017 19:33:45 +0200 The variable "ret" will eventually be set to an error code a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 76c5128284f8..e46cf2c92497 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1901,7 +1901,7 @@ static int alg_test_cprng(const struct alg_test_desc *desc, const char *driver, static int drbg_cavs_test(const struct drbg_testvec *test, int pr, const char *driver, u32 type, u32 mask) { - int ret = -EAGAIN; + int ret; struct crypto_rng *drng; struct drbg_test_data test_data; struct drbg_string addtl, pers, testentropy;