Message ID | 20221020022004.88863-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp23716wrs; Wed, 19 Oct 2022 19:31:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4dls4C5rPNj/LOIEaeL4kT7rhNXE1ZoKMReeRSa8UKzDvbtol8IoTkzBpFt+fvqfsMs+tb X-Received: by 2002:a63:8bc2:0:b0:464:69c9:9eca with SMTP id j185-20020a638bc2000000b0046469c99ecamr9959038pge.210.1666233100352; Wed, 19 Oct 2022 19:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666233100; cv=none; d=google.com; s=arc-20160816; b=BafeHC34jUed9hPhN+efsaYM99otFvV/c2hFIo5Q9yt4n+BsQ5SzcbLQW5vvbJin2X qTadoXkI2ORTTnI7rshMx9NbQ6FwqYcoK2JOZWEB9iWmZYTO/pgm8mGEwbUuq4huu71E bk+4JGNSvFDj9EAJwoA81y09/R75P9b3msdcVOE/hYPqmLGF4K9JJtvMofOhVG1ROSHi YMLvACZYG7Oi+9UxWF4j0tCoMB91bViaPvwKl4HtgTCAW5ob4S9eq0jIHyhDh368TLJi FME6jRU329Od5o1jOLqC16fRYfR1fiV5jFRI5Af6e9JSmeo4twBh+o9UbSnINevLoSSD +f9A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a1709028d9000b00176955c81eesi18081327plo.247.2022.10.19.19.31.27; Wed, 19 Oct 2022 19:31:40 -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 <rfc822;samuel.l.nystrom@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <yang.lee@linux.alibaba.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747172039437870528?= X-GMAIL-MSGID: =?utf-8?q?1747172039437870528?= |
Series |
[-next] mm: vmalloc: Simplify bool conversion
|
|
Commit Message
Yang Li
Oct. 20, 2022, 2:20 a.m. UTC
./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 <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
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; } /*