From patchwork Sat Nov 5 09:53:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "yekai (A)" X-Patchwork-Id: 15936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp906149wru; Sat, 5 Nov 2022 03:02:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6f/daw+d4f3IITE+G28oSaTpeZqHzOHEm6S2pEA6ke6ebDWaNOD6IS9eXsdjKaUrwKXbpT X-Received: by 2002:a50:ab1b:0:b0:461:9955:b54a with SMTP id s27-20020a50ab1b000000b004619955b54amr437141edc.159.1667642527558; Sat, 05 Nov 2022 03:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667642527; cv=none; d=google.com; s=arc-20160816; b=o6H0G+GjnN+HgTEMY7Id2nr7uIMldZvsQQFDQiLz+3AT/1JwYO/Y4o7Ivub/Pd/UXS n8Qtsn7pF9q3F3/FY0j5vpiNNi1IKPRJrz3Nwq9u2wUNdWBLKbMCUlEwt/js7WtnOJdX OCgSc/uoedSDkV1vcv6A5sNHIiQXeth6C52q8WxzpE4TpMZc8Vbbg+19DfvhiY8OnNOw Hm10vU6knmZ7FTHWubV7+/KrDpuD6bHqubXg2+is8QPGy/ajJsJux4YOZUciJGX3r2md D+SL5DPAgxbSKq27bfei9/Ha0OUX6NobPpfuncfJuMoQXHBSA6x+ofUujsel9anuH0j8 FBHQ== 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=/LMVQbdGGtKUd3cS0xxYyWNt3H9yacuKsvNhWbXJRak=; b=yzQ4ZM/Ou+/Fv1/1gFVTku2DBVu5eWVp69Phf674AhllOm62gZonUSWkHqQoOsCBmb UTpjOyuONAvGBboP0JyTfMoEfm8g+dXf0MlKKPlb++nb9xZryULm0mzJWUQGSwgUwS2N Q4z6ST4rwcjn75D5/qOxvxdgBXusuuJaQeYGSpazECruRAyAd8wwdh3CQOkiIv79OY+l q7+FOXonFlaXkdnNPfC1HuCwAYau8Ufr3hSGbKwn3qK1ZuUmLLT30vWCxBkx/nNirc+R SrNVIdn83LvHHy48TRP3oc59YG7dNi9Bh2wZiVHDV/OjrTyC78lGRVz/ApJPk+fvTSxT 5sUw== 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 mp3-20020a1709071b0300b007adf3ed5d20si2101020ejc.376.2022.11.05.03.01.44; Sat, 05 Nov 2022 03:02:07 -0700 (PDT) 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 S229720AbiKEKAG (ORCPT + 99 others); Sat, 5 Nov 2022 06:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbiKEKAA (ORCPT ); Sat, 5 Nov 2022 06:00:00 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 279D9193F6; Sat, 5 Nov 2022 02:59:59 -0700 (PDT) Received: from dggpeml500020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N4Cf16dn5zRnsC; Sat, 5 Nov 2022 17:59:53 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 5 Nov 2022 17:59:57 +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, 5 Nov 2022 17:59:57 +0800 From: Kai Ye To: CC: , , , Subject: [PATCH v2 4/4] crypto: hisilicon/debugfs - delete redundant null assignment operations Date: Sat, 5 Nov 2022 09:53:57 +0000 Message-ID: <20221105095357.21199-5-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221105095357.21199-1-yekai13@huawei.com> References: <20221105095357.21199-1-yekai13@huawei.com> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748649931163289103?= X-GMAIL-MSGID: =?utf-8?q?1748649931163289103?= There is no security data in the pointer. It is only a value transferred as a structure. So not need to set the pointer to null. Signed-off-by: Kai Ye --- drivers/crypto/hisilicon/debugfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/hisilicon/debugfs.c b/drivers/crypto/hisilicon/debugfs.c index 9f1bfabd7ae2..bcd5cdaea736 100644 --- a/drivers/crypto/hisilicon/debugfs.c +++ b/drivers/crypto/hisilicon/debugfs.c @@ -822,7 +822,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm, dregs[i].regs = NULL; } kfree(dregs); - dregs = NULL; } static struct dfx_diff_registers *dfx_regs_init(struct hisi_qm *qm,