From nobody Wed Apr 8 12:34:45 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C183EC6FA82 for ; Mon, 5 Sep 2022 02:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235232AbiIECJl (ORCPT ); Sun, 4 Sep 2022 22:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235064AbiIECJc (ORCPT ); Sun, 4 Sep 2022 22:09:32 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D9FF110E for ; Sun, 4 Sep 2022 19:09:30 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 162BB1E80D74; Mon, 5 Sep 2022 10:08:36 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HiXgdR0GdOS1; Mon, 5 Sep 2022 10:08:33 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 876B51E80D59; Mon, 5 Sep 2022 10:08:33 +0800 (CST) From: Li zeming To: mike.kravetz@oracle.com, songmuchun@bytedance.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] mm: Remove unnecessary '0' values from err Date: Mon, 5 Sep 2022 10:09:18 +0800 Message-Id: <20220905020918.3552-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" First execute the kstrtoul function and assign a value to err. Signed-off-by: Li zeming --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e070b8593b37..be7a2c4081fc 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3714,7 +3714,7 @@ static ssize_t demote_store(struct kobject *kobj, unsigned long nr_available; nodemask_t nodes_allowed, *n_mask; struct hstate *h; - int err =3D 0; + int err; int nid; =20 err =3D kstrtoul(buf, 10, &nr_demote); --=20 2.18.2