Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp187438rwi; Wed, 19 Oct 2022 19:43:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kdfh0PA0YzMcdwBKrreo5399aTx4gPhGsQ9lDNYG13MMQFtGX3KLMiiLOivxyWw5sL3Uk X-Received: by 2002:a17:902:724b:b0:185:4639:69b1 with SMTP id c11-20020a170902724b00b00185463969b1mr11254753pll.142.1666233807052; Wed, 19 Oct 2022 19:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666233807; cv=none; d=google.com; s=arc-20160816; b=fNd5hIlW9vwf6mXNm6WfgYQzZFdo8HFOuvIvELloUZlqApObSpLOUJiPqSKFDQem3E uJxA0rYxArOxhwQRcSRAtcQhK9wlwu9mbCUoeK4frcwyOd6GsorEhSOI6F4Y8w+wOzOo dIzoIgukVckJNzQ2WkTANsw3K5wLJ/1zXR66qBHcgFpKtyva9mFjYvEJ4PSlqK2dnMDg u/xH0FxSAXb6mqgIG1fF7RXBLJ1qm9moVJKZobAl2aAokIW4jLGC9VyJVssBVo3Rdepu zKrq/n1z8m2pnSzvVAoZ2CJImzyXp6Qz2PA/cu+v930BPEaMc4ik86wEcEsYAo1TVcOk 98cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mCIGeAXAuw+v4yNxCw3sOcY2R6yKKIaMUUgq2hf+bTo=; b=O0pqijZQAjB8/8V5RAHJDYcAGlAUIiS1UVGFMFMmA3ytRYV5zD+xuhjXjJ/uVaM4aC rqUcy4h/sdiwf0rKFnX7UzXnkuu2YSCBSTtro+ZbN0bTfGg1UI//Gel3/BGbG99NK/h+ 3dhlcF+xaQ0xioj0PflZ7p7pBuNpRiardAwGcgq18jBFMfmUak9KYkhkmxak+ti3jcgJ WngLg46LsnB9G536j7nmi6ABNAs0Ha/EAy0REeg5cC2xmQltk4+bVuiigCTtdT+OJiL5 dG9RnGa5uCdb9awnJsojigTurh37rCRW0GZl1q+aIduLI8sgZgL7/XB8wEPVg6BRIKJu r5DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a170902cec800b0016641a8abcfsi22753462plg.549.2022.10.19.19.43.14; Wed, 19 Oct 2022 19:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230229AbiJTCUR (ORCPT + 99 others); Wed, 19 Oct 2022 22:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiJTCUM (ORCPT ); Wed, 19 Oct 2022 22:20:12 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0AAE112A9B for ; Wed, 19 Oct 2022 19:20:09 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R861e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VScpi-d_1666232406; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VScpi-d_1666232406) by smtp.aliyun-inc.com; Thu, 20 Oct 2022 10:20:07 +0800 From: Yang Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] mm: vmalloc: Simplify bool conversion Date: Thu, 20 Oct 2022 10:20:04 +0800 Message-Id: <20221020022004.88863-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./mm/vmalloc.c:1789:36-41: WARNING: conversion to bool not needed here Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2454 Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 1e641d315d11..ca71de7c9d77 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1786,7 +1786,7 @@ static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end) out: trace_purge_vmap_area_lazy(start, end, num_purged_areas); - return num_purged_areas > 0 ? true:false; + return num_purged_areas > 0; } /* -- 2.20.1.7.g153144c