Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1581361pxb; Mon, 8 Mar 2021 00:46:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkKcy5aPaDrnvSXG+yH2+ljXFmPFRxbPqvxDYwIUDy4k1wrK3Qa4isK9CIqbYnZ2YejYqc X-Received: by 2002:a17:906:2b0a:: with SMTP id a10mr14211369ejg.513.1615193173398; Mon, 08 Mar 2021 00:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615193173; cv=none; d=google.com; s=arc-20160816; b=Fp+pNStta1cFMJriLVvB/AwL2fpiycax6WrhnOGGVct6cE8GPfcUsqfAHES19fniay ExXe8qXHPz+KxwtYttiQgf/PAAmuGJgSh4GN05IUyr0iVYZZkCQrRcouwyAQir9H/hui P8cTGuzEzhDOzOhcS5DmIcRjs5mlWsz8tRO0faFiMhMGP66P/8MdLR8FNYDYg1RP/huF 1L49fY3rVta/3P+Wcfe1n4pUcWJdOkpRFQK9iG1TqU3OQykrqbVKDhW+egH/S/fbpnUL wliEKHabMUVl3LnTexIjoWIBHuKQhrM9p0FWw6/S15jwE536lhJWQWhE2eIRkS+eXZAR CbSw== 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=dR/l2+0kGQCyDufS5o5MpgPOXi5K7PChA8Y57HB/agw=; b=td/3hYLR1Hjih8EI3DAS5rs6IB7q7gUF3xWa6fi16JlgdZy9r9lXpyIwGxI7aVRJW3 xRv/iPFySSMxWzAcNtsZ5NYdfMLUIIVJi9gGQW3AuL58O0liw9yDd3goSGTmGzbx5trV 2BIfzzf3s1jI4wswUKx4dIyoBN6WBlRJ6X9iKu14BjnqjtLIxfvtDnnSB5ceDulYNwvE pLDBdayO+3LPzCgrFYHD6kHIwGFWVhSEZYxe3vm4i1iINxznfwtNbZpK/H5o1JrzjSL1 qGciuc1mnjYYhnRmg9XE7mqQIf3T2ZrPgSbVi+WRoN7MGdaU/NXSx3cKE2B6tqHkZCge sRKw== 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 si28si6529933ejb.106.2021.03.08.00.45.51; Mon, 08 Mar 2021 00:46:13 -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; 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 S229737AbhCHIXS (ORCPT + 99 others); Mon, 8 Mar 2021 03:23:18 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:48607 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbhCHIXH (ORCPT ); Mon, 8 Mar 2021 03:23:07 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UQr5Aen_1615191785; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UQr5Aen_1615191785) by smtp.aliyun-inc.com(127.0.0.1); Mon, 08 Mar 2021 16:23:05 +0800 From: Yang Li To: mingo@redhat.com Cc: peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] sched/fair: Use true and false for bool variable Date: Mon, 8 Mar 2021 16:23:03 +0800 Message-Id: <1615191783-114032-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 Fix the following coccicheck warning: ./kernel/sched/fair.c:9497:9-10: WARNING: return of 0/1 in function 'imbalanced_active_balance' with return type bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 794c2cb..5388fde 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9494,9 +9494,9 @@ static struct rq *find_busiest_queue(struct lb_env *env, */ if ((env->migration_type == migrate_task) && (sd->nr_balance_failed > sd->cache_nice_tries+2)) - return 1; + return true; - return 0; + return false; } static int need_active_balance(struct lb_env *env) -- 1.8.3.1