Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4711440imu; Sat, 1 Dec 2018 01:12:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XXD+X7IURhgv+AsroGpED6W6/ATicZPQXa/u7IXYAn8qfkiukKyW37Uld3i/8HyLyzwM58 X-Received: by 2002:a17:902:76ca:: with SMTP id j10mr8452055plt.144.1543655540682; Sat, 01 Dec 2018 01:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543655540; cv=none; d=google.com; s=arc-20160816; b=uoTT7zE7l6FXKtzMsOILpm/h6yemcIilVZrj0vlo2OoAZRBq0SzlVlR8BsTYgEyBEZ Di6zV4uINZjNBOEBt3In8ThCwwlsv/dyHkFfs9rkDuyGIb9u0agMrWuyjkIZVaWeDN8f eOFrN7/wVbdF8LK2nSHFkOAbSQN9u+3EK2i5KQh9NzIgl3mEuOWXxZS4QzpCOsP/5eaW XOq/4iz0kudKe2JWIEr49bSsimNy3sw7/0fqvr3VYXxtPHEEHJm0Qu3RCsmoipa1Nldf 0phC84tBgM/Ckbi4fCF3/9DRJiO9OpvCjCBQfOveRvkmuzeoV6+AY8ZHpP2eOawGk8HX tEyA== 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=MQv9khAyuATJRObDF4vI2JHyp8NDCym+afUgSPEao5U=; b=Jc0xMrBIPGZJgJXOUPArHrG4rXzukV/9M67ept0K+ov5Pxi2Vvr83Nrf50SgGUe99G xJe1brBn6LmnF07tv3i5NI1mByjJnjAxi0T5jIWRSiTWRTVLfsQjYI2h+zDrFfmIr79b I0mLsZyVUH7R5OsksqG2suFYFfEILrlytJatpGHcEgVXZUo3DoBo2zgNO+S+cMXkORUD zlhA4un5mCTRUYbQYSZ2ehMmyCu/d/T2r9UBBIrBx3yW5BE8FH6ZIct33Ak7jpVOflwn 5tWu0VoP4ZQBV1SNUBygo5+4aIrF2b/tvjap8ZjMIbA7Oja+X9OCNOqFfJyr2kdsk5xv 69Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si7655094plq.268.2018.12.01.01.12.05; Sat, 01 Dec 2018 01:12:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbeLAUWG (ORCPT + 99 others); Sat, 1 Dec 2018 15:22:06 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:56650 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbeLAUWG (ORCPT ); Sat, 1 Dec 2018 15:22:06 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 1EE54685BC0FEAD2B3B1; Sat, 1 Dec 2018 17:10:01 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wB199tQ9069758; Sat, 1 Dec 2018 17:09:55 +0800 (GMT-8) (envelope-from wen.yang99@zte.com.cn) Received: from LIN-A6CB96A0603.zte.intra ([10.90.106.118]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018120117104132-14115503 ; Sat, 1 Dec 2018 17:10:41 +0800 From: Wen Yang To: Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Wen Yang Subject: [PATCH] sched/fair: Fix assignment of boolean variables Date: Sat, 1 Dec 2018 17:09:36 +0800 Message-Id: <20181201090936.10175-1-wen.yang99@zte.com.cn> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-12-01 17:10:41, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-01 17:09:35 Content-Transfer-Encoding: quoted-printable X-MAIL: mse01.zte.com.cn wB199tQ9069758 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warnings reported by coccinelle: kernel//sched/fair.c:7958:3-12: WARNING: Assignment of bool to 0/1 This also makes the code more readable. Signed-off-by: Wen Yang CC: Ingo Molnar CC: Peter Zijlstra CC: linux-kernel@vger.kernel.org --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index a2e8160968cb..f19aa66f9b15 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7955,7 +7955,7 @@ static inline void update=5Fsg=5Flb=5Fstats(struct lb= =5Fenv *env, if (env->sd->flags & SD=5FASYM=5FCPUCAPACITY && sgs->group=5Fmisfit=5Ftask=5Fload < rq->misfit=5Ftask=5Fload) { sgs->group=5Fmisfit=5Ftask=5Fload =3D rq->misfit=5Ftask=5Fload; - *overload =3D 1; + *overload =3D true; } } =20 --=20 2.19.1