Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6979080rwb; Tue, 22 Nov 2022 23:49:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RoZFgNJakYkz2Ybf65s6+oz/kfU1D9e38TxucnI7FcEwZsuzl1gxkebdCvb7a/HL7fBRM X-Received: by 2002:aa7:8608:0:b0:52f:db84:81cf with SMTP id p8-20020aa78608000000b0052fdb8481cfmr8617794pfn.26.1669189777287; Tue, 22 Nov 2022 23:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669189777; cv=none; d=google.com; s=arc-20160816; b=aRszbyvKSJyWE/BvL81nPJwPmB5T7NkWWb3f6JSXrI3xA8Co3k5Y3NAHB+FI6pe6wF rrD4TZhc3+nfF716Z2SX1jy0W2IvC8/FQWqL0Ty9BbQ+I3QziNChlbR9xw3I03rZHWri 5h7H/LH4gVfekX6/c9jd2ZVK2eMiUdSg71Tg+puzJfzFVkPkBAnEPzjsyTO0Sd6+rVWs ivVhuX7FcIur0CrlJkspJGDF5Pi9f97ilu8MbopyrDLc6uhCNguYIyDup5i4MOOVburz IYXZk7WF6Q/JZOBBXz906mTPz0Ivj0ocpoPOKMQMMQK55grVWD/sIiefOWkCX9+7ZxXF ZFxQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a634b01000000b00476f92f4580si15883962pga.734.2022.11.22.23.49.26; Tue, 22 Nov 2022 23:49:37 -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 + 89 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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; -- 2.25.1