Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1963416ybb; Sun, 29 Mar 2020 18:26:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRU5SPlqR+KNehcEk7j5O30A/CPQvvYnyYtM32d4gpI79j3o2QJhWBkXOQ3SIDAlUJBQ9M X-Received: by 2002:aca:3089:: with SMTP id w131mr6412687oiw.121.1585531613849; Sun, 29 Mar 2020 18:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585531613; cv=none; d=google.com; s=arc-20160816; b=FxnKeTnokqG+7arActb6BaSNZzuIHHROLD02CgXnJPmdMu7QUHV8bn7O3XAZJl6jqe dGjtaV/oS31MngMsEenmpDJkYrd84jRbtf24MN5WUqkCOOgLFFdhVYXSqdVkDpYYGl7X JntrvsY2QhVbiuzRlXoH9q8WxKuXmuBXm0GEzL9iIcdgCe9CRpBjeeBMxhG+nPyp+7fL wKoUntGkioC9bQkH3k0Voui17gPXMnnje85cUCMCUdb4jKaNcaGA+JULLphcH7yX8Xgj fYLPJs+JP+AWi25fhlBxrO5N5V1Di1cXFxJv5Qzq59Ep4+IwVcNEBUV8jDsEk1qmqIyU kT3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vvVNz/dCC3Pp0jd+BVDOSr6q8PbYsHQO5xWmDmPIZ9M=; b=vmiVja5vR03aokhpitWzX8mM3EcUeQv3Xezc+G1UcbrZh6pbkJuAUrZ+U4ZgumYHsn PVIUr2p+YcbcoFGgFcxgBualPTBgABPhnovnlKUiWjtW1UcSqw5rujq6KGma/FT/kRdE srntQ7uaFlbPIE06vTqIDUueQ4ErLM6c6MVtSbvAjRC5QRlpkMoqCzsnxxbbgeIJdshc FqeObzW0W/pU0TLPki+hTl+ZD4b/EC61pJl7oI+uOGrt+siV5xHK9hZRfeawS61GtUAU LpT/MgHJ74kDPSa/KvRJPWxbujxIXoX1M0blj+hy6QY/flZ0oatM0JTJDOF4fU5rPhSr Ni/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EN6zdjyR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si5358438otk.77.2020.03.29.18.26.41; Sun, 29 Mar 2020 18:26:53 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EN6zdjyR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728239AbgC3BZI (ORCPT + 99 others); Sun, 29 Mar 2020 21:25:08 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45159 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbgC3BZH (ORCPT ); Sun, 29 Mar 2020 21:25:07 -0400 Received: by mail-wr1-f65.google.com with SMTP id t7so19375815wrw.12 for ; Sun, 29 Mar 2020 18:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vvVNz/dCC3Pp0jd+BVDOSr6q8PbYsHQO5xWmDmPIZ9M=; b=EN6zdjyRFmvz8gT6YiTOEvA3n8BuG+QOoxVf/9opOdvUSdodz4/kbKv7f449QrJLhH Q4k2xZUao3jkVyJqy/Q5mc1KDrX38hxP2nhH4XuaiZIuDsSEFPuUKL2VeKpCVax28Tnu X105I3cV++SPsSXFO7xmgsrL7xlqT6mgjHEwcULEJnTVAfX1X9KimpZXDLugQH7Hyr39 tTFPWDMgtMc0xsBaHRGRAvOQsrcY4Dx7ssbTAAznS163cmJ8FufNLdHRuw9fRquMTfKC ylbC+VhrUtjUC/fiK7ZTWmvUgCi7x79c6mPbuNCBtrvkXhzOrBc1pO1yIlZ/1F5C2A7O 3HiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vvVNz/dCC3Pp0jd+BVDOSr6q8PbYsHQO5xWmDmPIZ9M=; b=YuXaNMw/fbXzmjcq+1fbcusGnMFy8dVGqE2ccWpAYvYlibGZq5lh7faQt++lniJRfh lBaJGPDf1aL4MZUExmJmoUbzWhoE8lKccMQWHZjg1esbHQTzXizskMJG1CVKgLkjzdVw Q/xD8tbK+zYEiHI0KE/cxM02BcLS6Pzb/VUwxrmeFbxj7ZP+U4VAzvaq7ZOOrPx+7v57 8DBL+V7idpRmmHld/J4IKATsoHUStotBfVb0lF1au8hr9QFaI+bA1LfFuVaDYqWMTVlB Zji4PssMckxE+vY1lwOtNYPVX1CHvGhT0p0qEFRFMRa2XbRy+yvNwgdCzhjVqckF9Tbg 0tTQ== X-Gm-Message-State: ANhLgQ0wtjMGePr3qOVwUby/n1ht1Pl2NeWHSvSsOIzTB1dDK9Ygf4+/ HjeaGASozAwF68w32uuh+XpUbFCN2l0i X-Received: by 2002:a5d:49c8:: with SMTP id t8mr12472254wrs.5.1585531505670; Sun, 29 Mar 2020 18:25:05 -0700 (PDT) Received: from earth.lan (host-92-23-85-227.as13285.net. [92.23.85.227]) by smtp.gmail.com with ESMTPSA id f12sm18679545wmh.4.2020.03.29.18.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 18:25:05 -0700 (PDT) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: julia.lawall@lip6.fr, boqun.feng@gmail.com, Thomas Gleixner , Jiri Kosina , Peter Zijlstra , Josh Poimboeuf , Paolo Bonzini , Arnd Bergmann , Eiichi Tsukata , Tyler Hicks Subject: [PATCH v2 1/4] cpu: Remove Comparison to bool Date: Mon, 30 Mar 2020 02:24:47 +0100 Message-Id: <20200330012450.312155-2-jbi.octave@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200330012450.312155-1-jbi.octave@gmail.com> References: <0/4> <20200330012450.312155-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coccinelle reports a warning inside __cpuhp_state_add_instance_cpuslocked() WARNING: Comparison to bool To fix this a comparison to a bool variable to false is removed and replaced with the operator ! before the variable Signed-off-by: Jules Irenge --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 9c706af713fb..97f8b79ba5f5 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1682,7 +1682,7 @@ int __cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state, lockdep_assert_cpus_held(); sp = cpuhp_get_step(state); - if (sp->multi_instance == false) + if (!sp->multi_instance) return -EINVAL; mutex_lock(&cpuhp_state_mutex); -- 2.25.1