Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1256106pxb; Fri, 13 Nov 2020 08:05:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX1bHuXpsRV8fyL8ndpHXaYV53eDG1akKW+myxgNj4FHQhQkmb9oa8PtHhV6Ifa8IxYwlV X-Received: by 2002:aa7:c68d:: with SMTP id n13mr3290086edq.350.1605283520285; Fri, 13 Nov 2020 08:05:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605283520; cv=none; d=google.com; s=arc-20160816; b=Z65TPcF/DxBWCus8GAomAbQjE15NYdcb3V43och4W4FU6ZiE2Q4ZmlaQ0yBTrm6TG7 b3fLH4Sap9GzDRcOfjm3q6SSshnnpe1bPNo3U0RrDN5iQ6UCfas+Uh+HKpADgqd8Xxv9 0lFSa7x8LdqzEAuJTbPlS+ryTY4dHzGQkxk746LAWPWRn6CumlzpWa9vBQp8CUvuK8Jn PcWA0jsZ6beQd3poeR0412CUZ7eQN6BH/N9AuE6/inIrFQyy6zMv9PwPyeW+fyxOwMY5 R0dD7lIAd4lSmjUHCjS88xGQWvShImUhs7Jx020YNNonVhjFF3p1vQ0coxQJErhLrCur VHog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=xKCKF8CdOdsYeVuRA+/C1nKU3t1+HQCbHBG+vyQ+EJ0=; b=RBLAqhqDhHmlv9eqFErn4g6ITHft8U9w6Nufsy39ZIbIkeWPTWTKFc4fibA1kBEANi gIIMH/lelDtoTJOIjUisP62gicrjibnPDqnTZyzEsRlb5DDUJ8QeltkGSGfI7k74NamI BzqVYzlnl1s+O3clFJDJ78rHhzZhe697FZpHtYgSgbEdPn/TZU4uN6pOK/he+gUitbsp 5oivDcEqoegX0eTEJm0cxTyhetw4Z6TzFGYuzeo8cqF9Iy7YlWRjjvpwEldOPS97LTrQ yoMG6GQMjJu+Zr4IiVWo4zzN1Zjy8OF4/wydY+KFZeva4GuT1Tz/UBB7lBpYA8T96reI FqZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Spd0kd8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si6350110ede.143.2020.11.13.08.04.52; Fri, 13 Nov 2020 08:05:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Spd0kd8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbgKMQCy (ORCPT + 99 others); Fri, 13 Nov 2020 11:02:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgKMQCx (ORCPT ); Fri, 13 Nov 2020 11:02:53 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC5A8C0613D1 for ; Fri, 13 Nov 2020 08:02:53 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id v12so7941584pfm.13 for ; Fri, 13 Nov 2020 08:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=xKCKF8CdOdsYeVuRA+/C1nKU3t1+HQCbHBG+vyQ+EJ0=; b=Spd0kd8OYNy4igils98t1rBlE2qPIC+q58ZdTklFYFFLlPUyFmvGLPflQON+07YVbF 6+9rTT03mHmMtr2Zrk6CeHfppU2Bn4zuOcyy4/NBijC5BWtSRG5dWn8Q4ED/bCqL379v jZo0GxItUjzDlDJXm5wu099y7Vf9fuFOJKKkFxK966ckX/x7xn+18a1bajO3Z2/bH0iS 4KjSprn4vn7aV7JbsTl9Ztw50h6sGHky/qHy6VCmpuO4Aa7GFxM1wdpK52F3pMwTtUdz e35FrAt3QVwJ5bZHvjWAFiZbks5FsxIbPg0SnXzc24O1cbyWZ9zuHfeFH3TdFUJ74OoI yn+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xKCKF8CdOdsYeVuRA+/C1nKU3t1+HQCbHBG+vyQ+EJ0=; b=P6dE/Q44gNQ/fjqmCuwjSQSSQDmLc4Hcrnq+sWLNmuSFrDIlGaZDESuaXi2j69n/Ua pTy9LMerlrTvoxb4jFFBsN25W8NHl6zSapbMjJ6p3uA7KCUjFNJ4V2+jjxfOtJATJjFN ehC7RuC+UsCP1dCMwBdXEslY5re/qANXWxX+ecM53cea6rci1tGJfYTvgVtbvANdGf3C EBx1622farnuYJgbY/JqiMq24UCkOsfyZvTc0s50sdJUHeYPxZarIXqH7RS4gfYnDygZ PL5SNXW0120RrisUx8RNdY8KIt2S9fFIyB8lAMPRR36Ba2nYITwv68dCp+/1/luyu7XJ DVYw== X-Gm-Message-State: AOAM533cqaq9w+d/gJGDb4ydTPeu0zV4i7AINTtd/vberKvh/UBoSzGM lrtyDpUTit3zfVbYBtUisS4wfE3ItF+O X-Received: by 2002:a62:e516:0:b029:156:3b35:9423 with SMTP id n22-20020a62e5160000b02901563b359423mr2596357pff.19.1605283368436; Fri, 13 Nov 2020 08:02:48 -0800 (PST) Received: from he-cluster.localdomain (67.216.221.250.16clouds.com. [67.216.221.250]) by smtp.gmail.com with ESMTPSA id h9sm11625117pjs.26.2020.11.13.08.02.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2020 08:02:47 -0800 (PST) From: xiakaixu1987@gmail.com X-Google-Original-From: kaixuxia@tencent.com To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Kaixu Xia Subject: [PATCH v2] tracing: remove the useless value assignment in test_create_synth_event Date: Sat, 14 Nov 2020 00:02:40 +0800 Message-Id: <1605283360-6804-1-git-send-email-kaixuxia@tencent.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kaixu Xia The value of variable ret is overwritten on the delete branch in the test_create_synth_event() and we care more about the above error than this delete portion. Remove it. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- v2: -remove the useless assignment in the delete portion. kernel/trace/synth_event_gen_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/synth_event_gen_test.c b/kernel/trace/synth_event_gen_test.c index edd912cd14aa..a4b4bbf8c3bf 100644 --- a/kernel/trace/synth_event_gen_test.c +++ b/kernel/trace/synth_event_gen_test.c @@ -307,7 +307,7 @@ static int __init test_create_synth_event(void) return ret; delete: /* We got an error after creating the event, delete it */ - ret = synth_event_delete("create_synth_test"); + synth_event_delete("create_synth_test"); goto out; } -- 2.20.0