Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3797796ybz; Mon, 20 Apr 2020 09:37:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKN37FNOrd+Y57y/pAGoZtK8GJiummIttodzmAL4rnMn7fos5k/5sZ/YrXza5FQU9QCtl0m X-Received: by 2002:a05:6402:688:: with SMTP id f8mr9127823edy.233.1587400654563; Mon, 20 Apr 2020 09:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587400654; cv=none; d=google.com; s=arc-20160816; b=I/JQcUgmdfxB6QJnKTjpA71LDQHiIhxuD8pWrvj9kgQQgcavqmvFS/Hbpc6z5GohZv d2v2o+r7kGlfhMELicrMJg+0mj3DAULpvmgY4JZ5ck08o+/7Y+JHxkD/MgO97VpK8Wsb WCo8tb+b3yw3T4+xDL2MKRWPfFrqhtHGrRWp/O/Hg8dhtWRW2FsMYhYrHCeMcEPzFnZm 1DozQ9FKyw1ek31dXBZ4/Yb0S0dAHqlv99KgEf1Wd+Nia6FOTRH6TgbT/xv02kzy3Y1U 4En3AcMibBeED0IrGdgoZBMUk+9eW4/1oOwjcMv5XTpUqeRiWi1XqHJtFarL7CvxqSGq TPtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=/dgcftu/x9UJBDAlYur83CJBxDaYNRax3tay0BSAC1I=; b=oqasbLPYq9lDfapzvqweilIdPHl1UwyV5jk4FbJd7swOCgZ5ckl8cqpJZvfdIJ2WcB qE1xvPMqoTOf5ZjHfQi7VxWkpJ68axjMgkzloleGnpI2ivBfBbx+NAmRF5ZE1Ub5QREQ XZ9JmfXMRYeHJHeMuUh2EnfU606qpfHfavZMw6/noSqSyejBXMIPTtmRhd3Cv01TYpLr MRkwYoVluI0j6+eSwycSAnF+rvDyKWLC1YY4BnU2cgyYvBqcEpZ7iyZGRVtV8OFgjL3e VifszKtjuWH4BZbNbMxT4sNVOg6XsAQos0iP4aZw1K9N12wUGMjao6zWTX7CmXhKd+XJ aJ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IU22Lzy5; 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 l19si825882ejq.122.2020.04.20.09.37.11; Mon, 20 Apr 2020 09:37:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IU22Lzy5; 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 S1727080AbgDTNeA (ORCPT + 99 others); Mon, 20 Apr 2020 09:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726211AbgDTNeA (ORCPT ); Mon, 20 Apr 2020 09:34:00 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D2EC061A0C for ; Mon, 20 Apr 2020 06:33:59 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id w24so8349228qts.11 for ; Mon, 20 Apr 2020 06:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/dgcftu/x9UJBDAlYur83CJBxDaYNRax3tay0BSAC1I=; b=IU22Lzy5xvOSkMk4nY9GJel6btu0P79YoTwDXl8tNArK7FeSG/MwZrkZzYxA6gpKWf mXdheuxaQtX9WA6meku8uL2M0H0ApYh7T7tIJyopNVjbqn08BCzXsc9o4vi1RRaGAHwT tRjVt8OCwDZoa95i/ZI67EotRl1N9uM7Zyod1e2P/6hCk89D1TdCchL6oddbjTFMRNNL z7moyUmJPn1Wy+lGrrpWfGcru3O1xHhbpA2pLROXt4oK4tNdiFru5olOE/5iv2qor+Pc rtsut25pBF7KlNchf1HS5BcbQfSY3Np1CD3WuYgA+GtN4NKi0dk0d4edOj7eaKr3WPMp jyVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/dgcftu/x9UJBDAlYur83CJBxDaYNRax3tay0BSAC1I=; b=M8BbKCv7jQFmrq5XAYgbR4wN5Rvm5ecsMvxm04my40ZlnWKyOncecwaiSDP3/1fxyD DvPuZ0Tjag31yH7M1CtFf84Q4H+0p158Ie8RZmRmBgYfpE5fdQQgREhxa3zacIlAXaty Ro2OvOMTWRK0xswLWJTn8JEXXejsIoDhASaC3YegGRKhIsxnfkcBdTEA726JXniS4t4V BL+V+cs6iquyIa6MQ4TCg5DQncE8T+eLXdlOFPqU2w/GFiGDvOw4Hzly76fVMBtuLsYH WARlATaczD5oWUqWD5NbknkMScB3tecYGQwT8UKtMVttYln4QC7qtGH8WjGhJE8AC70b 8txQ== X-Gm-Message-State: AGi0PuZnRttS3f9zd32KqZsaWlACenuDb4t4EWcWMPS/6iOOrpHPahEs 0/GBoVCFlpWWFMvC9YcdbwA= X-Received: by 2002:ac8:4699:: with SMTP id g25mr16352936qto.295.1587389638930; Mon, 20 Apr 2020 06:33:58 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id p22sm518179qte.2.2020.04.20.06.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 06:33:58 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0C594409A3; Mon, 20 Apr 2020 10:33:56 -0300 (-03) Date: Mon, 20 Apr 2020 10:33:56 -0300 To: Jason Yan Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf annotate: Remove unneeded conversion to bool Message-ID: <20200420133356.GA24477@kernel.org> References: <20200420123528.11655-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200420123528.11655-1-yanaijie@huawei.com> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Apr 20, 2020 at 08:35:28PM +0800, Jason Yan escreveu: > The '>' expression itself is bool, no need to convert it to bool again. > This fixes the following coccicheck warning: > > tools/perf/ui/browsers/annotate.c:212:30-35: WARNING: conversion to bool > not needed here Thanks, applied. - Arnaldo