Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3638377ybz; Mon, 20 Apr 2020 06:46:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKn5ZraEPbey8zOc4laJe3W9SO7RknLGAZ5PMOFh7QHHw+xF83FA2M1QEbkwWykY2245p54 X-Received: by 2002:a05:6402:7d6:: with SMTP id u22mr14114036edy.149.1587390411631; Mon, 20 Apr 2020 06:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587390411; cv=none; d=google.com; s=arc-20160816; b=vs5CiBW/LN0x5wuFZVBPxJIFqyRIy8FYEPA+yGANYexL89FhtJIrPIExBSACNs0wKt 9LyPQxD7EcKgTkxU/lO9qSK1wW5TCDlMQMkqPF/NCtfiR+NzE0JaEIVBdv0fMRrHeQ4A RMYeh0y0+1crAAS39LBmmsQXqn5O6PbM52JkHQ+CCrpRUV3aQd8pot2A3fk/YyN/iyes uKuv/pdzXp6LMen1bwLJPkmjKNK/nBmo/pTfWEe4b5jSFN1K3/3I1QdDeABptDsrBkkm EYMDABoltSI32j2SE2H1U9obLP4zpmwGEQxYekeI7Jo8dBBlxVe0DVGMo7vkoanBJvG0 NRnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dihxcspcDnYgkuFrk8SutGJaRd+KtJPT4yQp1EbBUoM=; b=xhHKu10/X0RYsrYEc50m3lxIGESZgLqz0Ts2/hlmswvWpp7ZIKljF1aV6jO6jN6VEz ibVepqSrZ/JWDl9/FDJ7YpVLsYcB6E1VbtgJfgaF1uKYLANJp13XlV+jAMJ5ncJ5/yZe MOUPm75mKG5BhzI7/dplOg2JVp7EGgZlg8wEvm6FLWS9i2JqA1/bEHdLJA6tNYGgdDxt qbditCHwfZ3gUewhF0w4c0UpMYQJs8MrCzYsgewB0pUQjzWzpSrlnzeso5UOJ8M+gGEf R2OmAusXz25A7JPXzIo1IqCQ0hqyNfq1kQVk17z+wVZGdWiryVIVPK41DKxK1oTsr0xJ 5JZA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si635700ejl.159.2020.04.20.06.45.44; Mon, 20 Apr 2020 06:46:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbgDTMI5 (ORCPT + 99 others); Mon, 20 Apr 2020 08:08:57 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2414 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbgDTMI5 (ORCPT ); Mon, 20 Apr 2020 08:08:57 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1038FDAC64B51320EB8A; Mon, 20 Apr 2020 20:08:55 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:08:46 +0800 From: Jason Yan To: , , , , , , , CC: Jason Yan Subject: [PATCH] perf annotate: Remove unneeded conversion to bool Date: Mon, 20 Apr 2020 20:35:28 +0800 Message-ID: <20200420123528.11655-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Jason Yan --- tools/perf/ui/browsers/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 9023267e5643..bd77825fd5a1 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c @@ -209,7 +209,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser) ui_browser__mark_fused(browser, pcnt_width + 3 + notes->widths.addr + width, from - 1, - to > from ? true : false); + to > from); } } -- 2.21.1