Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3096633pxf; Mon, 15 Mar 2021 00:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2S2LywgP1YELawj3UMiIKO0JDlxEJ8bAsI0tvyDaXpzdN/NZqw9yt/Mg6mAx/Sfyvme/8 X-Received: by 2002:a17:906:7384:: with SMTP id f4mr22189356ejl.196.1615794888293; Mon, 15 Mar 2021 00:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615794888; cv=none; d=google.com; s=arc-20160816; b=MJHakImowtwjkBzv10lniJPOB/HnI5myZL//UTwqxzTZ5jK1fi4gAx4lPLGSt9N8N+ vjcQJt3eo25V3B3z7dAXfAdgT7XTcYggo8FTZjWf16mHVugpoZOrvAyGDvBJVh2XOz4z 8EmYxnkZswy4IMb8iGtSxNH4FS8BcjFT9qCwmXHG+HfIl1qSzQ+ydXulkb6XzvbEKNur KHTFyWMM4i6MV/w+ytEfyXQlXuw53ZMpmRzc6H2e+XcK6U9K8w01Y53VXG6uqRBUgrAp B5xj3DRzll5e8kWV26/hsDlwG2+UUPBn5z2kkSwyzcufq7XD82PTJPNIw095/i5L95f6 bX1w== 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; bh=ld6EUG5KwK+pbp15JOL6oFljMNImIY1HM0f60H1ECpo=; b=soxHp3JVjUl1IAc+YCROjSrhPCBlma4ymIhKnKnLiNLMkrIaFspOs6jGrhA+0WBsxa G2hxhFRRNyYIR1IHOMujQgcDEcMNmQGOOfPkvxw8gQ1P1XpRMOHPhje1kRduSMrKzUeK XxMdH0XTfXsJIZV/tamTZLvi1thLEaZ3ZX5T1FK41Q4Yg8/NDQITBLbMQeDzph1IsD57 0IR4YZlIMN9DJWzq8M9ZdkHxf/nEWL7Edgb8OCL4S4QnH9vLz7PrQsglYMlnqAVYfHAY ZbNYQvmeFBpXW6OZQiYobdtBFyrJl8vNaTl7aSUdpuQCWreLGFxiFRfSiwgFpfz5z9Z8 EM8Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si9864262edc.258.2021.03.15.00.54.25; Mon, 15 Mar 2021 00:54:48 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbhCOHvi (ORCPT + 99 others); Mon, 15 Mar 2021 03:51:38 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:60610 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbhCOHvL (ORCPT ); Mon, 15 Mar 2021 03:51:11 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R491e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0URx66MS_1615794669; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URx66MS_1615794669) by smtp.aliyun-inc.com(127.0.0.1); Mon, 15 Mar 2021 15:51:09 +0800 From: Yang Li To: peterz@infradead.org Cc: mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] perf tools: use true and false for bool variable Date: Mon, 15 Mar 2021 15:51:07 +0800 Message-Id: <1615794667-115538-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the following coccicheck: ./tools/perf/util/jitdump.c:803:9-10: WARNING: return of 0/1 in function 'jit_has_pid' with return type bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/perf/util/jitdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c index 9760d8e..f49a659 100644 --- a/tools/perf/util/jitdump.c +++ b/tools/perf/util/jitdump.c @@ -800,7 +800,7 @@ static bool jit_has_pid(struct machine *machine, pid_t pid) struct thread *thread = machine__find_thread(machine, pid, pid); if (!thread) - return 0; + return false; return (bool)thread->priv; } -- 1.8.3.1