Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp295533pxj; Thu, 17 Jun 2021 02:58:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOIc2QpQlO8RYC4YnWcCyBb6BKC41PH5R+85naeNQAQ91Ar6tIDJwnj/y0eeJevWjI+iXE X-Received: by 2002:a92:1a42:: with SMTP id z2mr2792914ill.223.1623923930667; Thu, 17 Jun 2021 02:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623923930; cv=none; d=google.com; s=arc-20160816; b=wZvJ0nS0rFIyUKYUiSoeDI1okWRsL47tRINy+XzixphKLZ+JeasHNFEbBIVUUfWQt/ vEZOdL1+dkQ0PwLd0QdVDQ3kTxm5FFRC3L9D1qlrrwtmqYMdb6pQZpLh9bIdFzbRrJGi GQsKZsOe3u9zztMvE7QCgkXG/sQXUuhXzseiY0965ff3MNl3UDXMobRdF0ZjOmjyLqAv BbqcprRnTg4f8EYL6p5KZR4Y7U7pG15HtIkIz9nUy5eNe7iBlmIi1Nui8Lx/LKtZvnEi yD4CjaOM4N130fmuhvYTYTlZW7hhoK2Ndy4NyZXOegJPIWZhpLu45gtXFeBUPpgiCe/5 YyuA== 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=F1PN4+kfN/cxURIyOHAXpY7m6z25G8mq6gVJ0v3ODY8=; b=pWi3lWtB4wTtbNUcPFE+0HdfLGtN7B90Dmw1LjZ3fOZtlYAk/TDS94PCAJGlJMuPpL ek8DWw+eJ1KJqnPv70k2RlNQTWuke4nrUkuf5ik9UxH5qk9b4y53tfUaFLXDnL4kt9ek IRyXr/D2wl5azg/ORkBEWNVDfb8DIjYDBiOxlE9ZoS4EEDHBdgRqcpHxHBmxDN4QQujE 63PFEOCX4P2BcwrF3FWgyW4X62/ACWb8Ka7GoW5UnMsDcaKbUXeM22Q5iMTkN7RhwyW+ eccAuWKzdRVT3oZOP9ca3Sg4iF2J8NLYcKKOQsHDairoFa4UKa61lgOiEIIAWyGplowR AcpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si5949980ioo.53.2021.06.17.02.58.39; Thu, 17 Jun 2021 02:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbhFQJSq (ORCPT + 99 others); Thu, 17 Jun 2021 05:18:46 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4834 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbhFQJSq (ORCPT ); Thu, 17 Jun 2021 05:18:46 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G5GWp3HbGzXgcY; Thu, 17 Jun 2021 17:11:34 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 17 Jun 2021 17:16:33 +0800 Received: from thunder-town.china.huawei.com (10.174.179.0) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 17 Jun 2021 17:16:33 +0800 From: Zhen Lei To: Jan Kara , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] quota: remove unnecessary oom message Date: Thu, 17 Jun 2021 17:16:27 +0800 Message-ID: <20210617091627.1653-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.179.0] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei --- fs/quota/quota_tree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/quota/quota_tree.c b/fs/quota/quota_tree.c index c5562c871c8b..b097d02bad94 100644 --- a/fs/quota/quota_tree.c +++ b/fs/quota/quota_tree.c @@ -49,11 +49,7 @@ static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info) static char *getdqbuf(size_t size) { - char *buf = kmalloc(size, GFP_NOFS); - if (!buf) - printk(KERN_WARNING - "VFS: Not enough memory for quota buffers.\n"); - return buf; + return kmalloc(size, GFP_NOFS); } static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) -- 2.25.1