Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2357148rdb; Mon, 11 Sep 2023 21:49:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqMiIO76hmP8ZOwMQeNm3C7uxL8Ofbwr5ZYIPe5qcCgdUIAp8BTi4RckF1tZmGphfAri1z X-Received: by 2002:a05:6870:4250:b0:17f:7388:4c69 with SMTP id v16-20020a056870425000b0017f73884c69mr15396687oac.30.1694494179100; Mon, 11 Sep 2023 21:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694494179; cv=none; d=google.com; s=arc-20160816; b=i10qYu3t3XzYzL5NPrEfdHh2W009XHjozvFKtlvbb/qNBVLDzbt+us1iNNoTfSV0c7 HCcZs6A6b7RaPsazbrb256d6EopoabxO6uz0Kvw/DJhtC2rvET0mjU3Xfjf41EDzf8tk K1aJd3uWIQr59wgIVSEbfUx+CE7icIUcm6J2xqTySHjNB43TgXr3puPBEDPpYOB/3j1k 34g5OIOeTpwxjFJVAH4GU2V1/fuJntxZhJLVo+tjzGeUNHCgh4hPJSsBZfdHu3GN96MP pnnvwZp8Q3mKYiu3yV3vRB1OOLDjAo0qkSsm5V6A0fbWZkRUkx0q0MdHSh/LA1pFrbR+ 89/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=puAldbU+U8SMAfv4j5SAC04ePEuSUcWuighr7wEYoH8=; fh=FI264puezDN5tM0DXmI6rwjtUpUQGQ46dF/7O8QM4nY=; b=gcCMzOC3FVg3knPlTXpc5OX2rwWtJWa64bR7JnANRAny+ulUtibj1dHX53utBHcGt/ +vJ/ek9oz+Nd7wOXbtXjIxj57IVqi9bAZF6QhEqcpV+JPgmXv6j0F0mL+QWbbUO9tqAO VkSd8ZF+QuCqy5dHLSZYvovXM9G1ucqq/1pBoLDOWihOYTXglk8xNZQpHqAegDDBMipb lTna/ZZVcDdVn/f7Iu9lr80Smjb9KNtEZBiCN/pLyej5n7pl5qy8MxYnikRHRBzwPSoI MRL4UkAHgxJnDM0atvneJBQnMXbFuN9o2Yq5y6TLSFrn53jz0qHXGcErwlDtl5t0CEVH Ul0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t24-20020a632258000000b0056fa1ac3722si7180291pgm.698.2023.09.11.21.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 21:49:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4074982EBE51; Mon, 11 Sep 2023 21:39:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237104AbjILCW4 (ORCPT + 99 others); Mon, 11 Sep 2023 22:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237215AbjILCWn (ORCPT ); Mon, 11 Sep 2023 22:22:43 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 81628171A36; Mon, 11 Sep 2023 18:46:11 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 8ADAD6059D7E7; Tue, 12 Sep 2023 09:46:07 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?crypto/api:=20Remove=20unnecessary=20=E2=80=98N?= =?UTF-8?q?ULL=E2=80=99=20values=20from=20tfm?= Date: Thu, 14 Sep 2023 02:17:27 +0800 Message-Id: <20230913181727.4004-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:39:18 -0700 (PDT) tfm is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- crypto/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/api.c b/crypto/api.c index b9cc0c906efe..7f402107f0cc 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -389,7 +389,7 @@ EXPORT_SYMBOL_GPL(crypto_shoot_alg); struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type, u32 mask, gfp_t gfp) { - struct crypto_tfm *tfm = NULL; + struct crypto_tfm *tfm; unsigned int tfm_size; int err = -ENOMEM; -- 2.18.2