From patchwork Sat Jul 23 09:26:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 593570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F0FEC43334 for ; Sat, 23 Jul 2022 09:27:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbiGWJ1J (ORCPT ); Sat, 23 Jul 2022 05:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbiGWJ1J (ORCPT ); Sat, 23 Jul 2022 05:27:09 -0400 Received: from smtpbg.qq.com (biz-43-154-54-12.mail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F31C3BE0A; Sat, 23 Jul 2022 02:27:01 -0700 (PDT) X-QQ-mid: bizesmtp75t1658568403tlofweog Received: from localhost.localdomain ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 23 Jul 2022 17:26:42 +0800 (CST) X-QQ-SSF: 01000000002000F0U000B00A0000020 X-QQ-FEAT: aBJFcW+uBGYxmhiel1Ariazskd9+D+7oHz6uF3Ic9MWYJmAb0KJoF8BIJsc2d gX71ra4b/xRLT1DPAgjk43NBzxYUZbVvNstmp8aV0EQNLXoeFUiboIxYSpdUQjGqTCh9fYr WPSGNQEJ/f/3WrUiMLui/FwQE4W0GBjBqZ37EaYSI6+9tMB5KF7jJggpVWfENqEmq4UrOt0 aZY+CbqZiaQOVFMO4RB2dMU++5kqZ4DcXaljshuiqWjXBAC/tqd9V+J74Nx7v0Or4Arr+23 j/QYDTdEMsLr+wpS+A7gR7AmBjqi6CmbzRLGemhgBQXzKt2E04YWgeOXOneKYrAokOiNEQ7 urdivmEZun8PSLjNsM3I6oYj3/rflmiKdz6KufOxGubMmBlU2OsGqq/QeP21nun+U8USPoD X-QQ-GoodBg: 0 From: Jason Wang To: davem@davemloft.net Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] crypto: tcrypt - Remove the static variable initialisations to NULL Date: Sat, 23 Jul 2022 17:26:40 +0800 Message-Id: <20220723092640.7559-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Initialise global and static variable to NULL is always unnecessary. Remove the unnecessary initialisations. Signed-off-by: Jason Wang --- crypto/tcrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f56d1a9cf0a7..59eb8ec36664 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -58,7 +58,7 @@ */ static unsigned int sec; -static char *alg = NULL; +static char *alg; static u32 type; static u32 mask; static int mode;