From patchwork Wed Nov 23 06:51:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wangshaobo (bobo)" X-Patchwork-Id: 24744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2630087wrr; Tue, 22 Nov 2022 22:55:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cVaHZw7LrP/xPRhd6gUoZ6YPtES3crvCp+63H1YzoCbslAFR9t9PM7eBuy7arbHBH/Qm6 X-Received: by 2002:a17:906:4a55:b0:7ad:9ada:79c6 with SMTP id a21-20020a1709064a5500b007ad9ada79c6mr22836290ejv.86.1669186548887; Tue, 22 Nov 2022 22:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669186548; cv=none; d=google.com; s=arc-20160816; b=JPi78/ZUD0jrDdQtSfbpkUPl385HrQfvc+x2H+CTJJZWvrOS6n8sDnpQ57pC3xaxXd zMPmc6vN4ddP6JkMzOIx/Fjwh66J8mciONDNX5skTLKntorpb5uDGrfrYPAoOrRVcM2/ 4EDDKdDhk7y6kI12DV7pTBFIZkpIxLhwnAkjdeFoqHdsP8UeBapefSgiBRvlYAESsexe MEf0DCnPwrMV6fKxnYxUZHNFXjGIHJ03OvVR2h3wJpkBsMHT3XcFcCmaxpyEnZ1xgfyl MXNthLVYng+d7SkvfzTuKNyOWZ0EvZEAGCDUj7QZb4VtGRvrhfyKdOJyuXx7FUUkYy9f AoCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=23L7XuA/8IUivYlWJD3sY23cBLmQhjkHLTAecNnLPwU=; b=nD+bmPQ2pifWSEGRDDl72npQesIvk0ZZuO4p7kbZ+j8ompQKMQMQeAIESQDuzGf1WG OgcUeSuzkrbsKgYHuMqELKLQM/nNDn2O7d+Pg8oczX80G8fTvlSfA5AE3V5Fm6Q7FJhZ hfBOHThGIAuEtX6+jxS54foY0SpzB6jkjVUQVOwkLkb+onLZDIQquoD85R7nAnPA2zKe UcC/7m37xHGshrWvBiIk3mrihA9rwBKl9pNblLiMDOGsxHYYcyNfzITczqsyFd6CqZYm kopapSlxdPsyjQ/lGpX+SZXxA6AqNIaS4IthyW2/nKB2EFUTrN7p7AiD/23fJ2rSeqU5 ftJQ== 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 v21-20020a056402349500b00458bbd3a0d2si7339137edc.602.2022.11.22.22.55.25; Tue, 22 Nov 2022 22:55:48 -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 S236116AbiKWGxL (ORCPT + 99 others); Wed, 23 Nov 2022 01:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiKWGxK (ORCPT ); Wed, 23 Nov 2022 01:53:10 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2C312745 for ; Tue, 22 Nov 2022 22:53:09 -0800 (PST) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NHBYh29t8zqSch; Wed, 23 Nov 2022 14:49:12 +0800 (CST) Received: from dggpemm500015.china.huawei.com (7.185.36.181) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 23 Nov 2022 14:53:07 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500015.china.huawei.com (7.185.36.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 23 Nov 2022 14:53:07 +0800 From: Wang ShaoBo CC: , , , Subject: [PATCH -next] tracing: Remove unnecessary NULL assignment Date: Wed, 23 Nov 2022 14:51:24 +0800 Message-ID: <20221123065124.3982439-1-bobo.shaobowang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500015.china.huawei.com (7.185.36.181) 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 To: unlisted-recipients:; (no To-header on input) 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?1750268954573758368?= X-GMAIL-MSGID: =?utf-8?q?1750268954573758368?= Remove unnecessary NULL assignment int create_new_subsystem(). Signed-off-by: Wang ShaoBo --- kernel/trace/trace_events.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 0356cae0cf74..728cdb72a190 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -2261,8 +2261,6 @@ create_new_subsystem(const char *name) if (!system->name) goto out_free; - system->filter = NULL; - system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); if (!system->filter) goto out_free;