Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp85580rwl; Thu, 3 Nov 2022 20:12:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4u4cVE6qVjPYBPR5YRYs2j1kKB9Scq5ZIOEBVQgVq7kxHBiD6IHyWFKoNO/X+g6WOC7a/9 X-Received: by 2002:a17:90a:39c6:b0:216:eab7:2e2b with SMTP id k6-20020a17090a39c600b00216eab72e2bmr2223802pjf.25.1667531539255; Thu, 03 Nov 2022 20:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667531539; cv=none; d=google.com; s=arc-20160816; b=LjF32VqI/GJlFgSxKY7HFtVFHxAOsvb7q+ARXak+Sl6CELa+FF2akWprYzN9R2vhTi qRE4zPPPTe/6SkaWYBMaGfy0X85sbSeUH2Cc8L3NE1hhZddn/4f+FCzxI1DfEhNisDtg otdcHEZ6FJ+NM6XeY+Nj+d74UmnIaHYSY2+xNoos21CWRten2Mqc0wy/cLsc9Xsf1bur 6DeySL/M9F6DH4vSVBuDHs/a/7c5L3Ucx6sUB2Edu0DwznsmXn0YFurevYNH8RzVTKF3 hg67qu0zmAX+LB6szD55vsHUJHLT1mXJrvx9CJgWQyG8yEDyNUBlIIVZIYWEaC+lBvEK dG7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=avSEI2G+fZyV3LunLLoUo0JWyQNy8b+gtgrZyzb/okk=; b=Qv3DDfUIezlVnEFwyidzUnWsCPYYOaw8eQfyQW8j2uT1tRQg+Ivy+3QwjT1s7sCGDy TJdC0OQc6OvhWaXlKMhoPwlzH47u1F0SKKw+Ad4RU6DtzBfwRBm9huSYKmxzNUdeuLDU BBVQEDVUcezFoJ/x+K/4MVxU+1WAX4nExaK5zkdPFZ67W+CNgRW9dUaT+APo6v8teNvW JRX2j3IeaOY5ON9RjZUFkphyX96v0VBH/7Xpyt2oovvJGQvanJ85nmyToA5iGFJUwLxh TzH79MNyKE/Z91mGBaDRpEM6kaKDfId7bBQtbXmzDLbqIERqOeErFvty64szVhvNI80Z /EOA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a63df4e000000b0045cbd4e43a1si3196740pgj.57.2022.11.03.20.12.04; Thu, 03 Nov 2022 20:12:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbiKDCik (ORCPT + 95 others); Thu, 3 Nov 2022 22:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiKDCii (ORCPT ); Thu, 3 Nov 2022 22:38:38 -0400 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1071123388 for ; Thu, 3 Nov 2022 19:38:36 -0700 (PDT) Received: from ([60.208.111.195]) by unicom146.biz-email.net ((D)) with ASMTP (SSL) id YDQ00033; Fri, 04 Nov 2022 10:38:33 +0800 Received: from localhost.localdomain (10.200.104.82) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.12; Fri, 4 Nov 2022 10:38:33 +0800 From: Deming Wang To: , , CC: , , , Deming Wang Subject: [PATCH] zsmalloc: replace IS_ERR() with IS_ERR_VALUE() Date: Thu, 3 Nov 2022 22:38:18 -0400 Message-ID: <20221104023818.1728-1-wangdeming@inspur.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.200.104.82] tUid: 20221104103833531fac831319cb0b27e05bee90e47ef1 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 Avoid typecasts that are needed for IS_ERR() and use IS_ERR_VALUE() instead. Signed-off-by: Deming Wang --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index a40c548520d3..1322f3615067 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -379,7 +379,7 @@ static int zs_zpool_malloc(void *pool, size_t size, gfp_t gfp, { *handle = zs_malloc(pool, size, gfp); - if (IS_ERR((void *)(*handle))) + if (IS_ERR_VALUE(*handle)) return PTR_ERR((void *)*handle); return 0; } -- 2.27.0