Message ID | 20221112021253.34862-2-yekai13@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1072478wru; Fri, 11 Nov 2022 18:24:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7G+Fu5YjJoQLR7rkvTuicM6Zohvh1w5loUvW6LT8w3fG3PjyhIhUeXKorVFd5yxaPzuMhv X-Received: by 2002:a17:903:134c:b0:187:edc:82f3 with SMTP id jl12-20020a170903134c00b001870edc82f3mr4695349plb.161.1668219849725; Fri, 11 Nov 2022 18:24:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668219849; cv=none; d=google.com; s=arc-20160816; b=NuIZ2SEYhK+/eht97MOufOhxeEvCR+upVR1DU6GNXGk4mZWyfaIWoJSm2pSHsQ4t8p JH0XixQynoSXph63kWdBwuLWiRael6wHxyTYmkKU+219xr4VHyHzsD7Va5TP+GaEtoRO WvlnfKd6LMgKfotBnnYCiU/dNgruzrbw6ziCKxYR4ySU62qAddyyKFwhihGXytFCRT3V k0mNqZUJEX7hJsOZxUh1NlG/A+sDVph6P71f1dEtpjAOilgYeDG4s2wc198a4f3zzBr1 QwvaslxvMtQX+os5ajz+crp8m0FNpMkREmhEnF1xO7LxdiQ2f+UXzAPDf2OZ35N09W6a yQMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=C3W60xtcXmDgtoP1kiaQkKuDa6O47QNCvUFDzFps5bU=; b=RRLqIpRczvPRQXtfE6B/il2s107NFlJduzK8yK32TYeeHtZHHIGq1ckISGelt/ddSt 1zWpx5ApVKsvpKcXf+w3kpr31YAWOhX63VN+kmVMZ0Nx/SKZGC1AI3ShFZIBgEjDfWtd umaywPNbQR14bDIKMTxjW+BAMWQuhkpia4kVcZCFcUKz55KbbvxWZzsb+zVzKENKzee4 hnwTUxj/IfkAqsSKu0eEaUMJEz+UezBkMAN+thjgj1fe7wJhDh+daN2W8/4DWe8NEVXp QOHgV5xTwm/fh+hGuECpbW+cggMeLKvvH5A19+VCaJIqfKKkF17guTJhp8hmR/k1IE8E /00w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a633c49000000b0047071cc77e9si3665880pgn.534.2022.11.11.18.23.56; Fri, 11 Nov 2022 18:24:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234312AbiKLCTK (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 21:19:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233336AbiKLCTJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 21:19:09 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76994303FB; Fri, 11 Nov 2022 18:19:07 -0800 (PST) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N8K4Z1C11zHvjs; Sat, 12 Nov 2022 10:18:38 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 12 Nov 2022 10:19:05 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 12 Nov 2022 10:19:04 +0800 From: Kai Ye <yekai13@huawei.com> To: <herbert@gondor.apana.org.au> CC: <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <yekai13@huawei.com> Subject: [PATCH v3 1/4] crypto: hisilicon/qm - delete redundant null assignment operations Date: Sat, 12 Nov 2022 02:12:50 +0000 Message-ID: <20221112021253.34862-2-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221112021253.34862-1-yekai13@huawei.com> References: <20221112021253.34862-1-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749255296960834935?= X-GMAIL-MSGID: =?utf-8?q?1749255296960834935?= |
Series |
crypto: hisilicon/qm - reconstruct and optimize the debugfs code
|
|
Commit Message
yekai (A)
Nov. 12, 2022, 2:12 a.m. UTC
There is no security data in the pointer. It is only a value transferred
as a structure. It makes no sense to zero a variable that is on the stack.
So not need to set the pointer to null.
Signed-off-by: Kai Ye <yekai13@huawei.com>
---
drivers/crypto/hisilicon/qm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 363a02810a16..849dc80a7118 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -1773,7 +1773,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm, dregs[i].regs = NULL; } kfree(dregs); - dregs = NULL; } /**