Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4633001imw; Tue, 12 Jul 2022 11:21:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1scTLcG5qYfPj2qv8xn6oDq2ccBVMlhWdgOtlnspOFN57QuffFIsxy8UxCYI+D1wOazF2xM X-Received: by 2002:a63:f4a:0:b0:416:cacd:8ef with SMTP id 10-20020a630f4a000000b00416cacd08efmr5934691pgp.462.1657650063110; Tue, 12 Jul 2022 11:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657650063; cv=none; d=google.com; s=arc-20160816; b=Omj6LNWfXKU3nwHaDtLtiv1y54tdOjSOzUV8Y5D9M2BtXWdn1roAp8EXyJEAoz7KJw Z4mwjjEi0Ig4zB6Wb2U3t9Ptd3Wfjt9K2DDCh3EWoLOLhv6y6+lgf+zClB/UeHsboRMn IMZXU1cgqAWQ0EXvegfM4dvKNZJommNp/R+9ZPfOJGnkq1wQbzzPmftIbfCrI/aPkLJH 48+f1I3XD/ZqGOQwaOAe9HRbRbA9WLc+k0Stx7VaWtCr3C0OHi6S5jMRFaFZzzF2oStR vQgxlLDAqgD0SKDl5gpVhkSwufy2btl/gzYLzPA6B6ymE0t/FZPweHz/CmRUb6ufJXL1 M0RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Wrlrku4/+SLcXVls4sn7jF+RynPNc2Sw+UTS6WgX1CE=; b=Qtgn/ep607A2+RBRnkxO3aI1buwiypgJuBIrotSGdCaWEBbBWF87iTB7nAtVPL/PBF bZsvvPUehLasLomiFjsLy+m9GVhkytA5VHTDp1VxNfOayV9wIXSBeD9Mzw5y+CrJYtkF zT/XOBjifP1d3/O9YHMwV6uNTo5AHzk33xQhvBOYrVsD8PItxnXOq4UjGeirVolXZutm PG17wpCEaF9c2FH2eQRa3/ktTGaPBuNsYug8JgwL0nWLpCIE7jcRh+4s64aDHLmcI7J9 D9qtgu7GYIdPqCmhxGgmPx7fCjoqKlRi5Lfw5x8pdV8oxyFdj7paA6IFKgdZIS2YT8CQ 5hcQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170902e84d00b00168abe39847si5602597plg.43.2022.07.12.11.20.49; Tue, 12 Jul 2022 11:21:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbiGLRwi (ORCPT + 99 others); Tue, 12 Jul 2022 13:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbiGLRwh (ORCPT ); Tue, 12 Jul 2022 13:52:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCE36715E; Tue, 12 Jul 2022 10:52:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 78E6AB81A77; Tue, 12 Jul 2022 17:52:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50484C3411C; Tue, 12 Jul 2022 17:52:33 +0000 (UTC) Date: Tue, 12 Jul 2022 13:52:31 -0400 From: Steven Rostedt To: Zheng Yejian Cc: , , , , , Subject: Re: [PATCH] tracing/histograms: Simplify create_hist_fields() Message-ID: <20220712135231.68d08a6f@gandalf.local.home> In-Reply-To: <20220630013152.164871-1-zhengyejian1@huawei.com> References: <20220630013152.164871-1-zhengyejian1@huawei.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, 30 Jun 2022 09:31:52 +0800 Zheng Yejian wrote: > diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c > index 2784951e0fc8..832c4ccf41ab 100644 > --- a/kernel/trace/trace_events_hist.c > +++ b/kernel/trace/trace_events_hist.c > @@ -4454,7 +4454,7 @@ static int create_hist_fields(struct hist_trigger_data *hist_data, > > ret = parse_var_defs(hist_data); > if (ret) > - goto out; > + return ret; This is a functional change. > > ret = create_val_fields(hist_data, file); > if (ret) > @@ -4465,8 +4465,7 @@ static int create_hist_fields(struct hist_trigger_data *hist_data, > goto out; > > ret = create_key_fields(hist_data, file); > - if (ret) > - goto out; > + > out: This is not a functional change ;-) If you just had the latter, then it would have been OK to state "No functional changes". -- Steve > free_var_defs(hist_data); >