Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp265374pxj; Thu, 17 Jun 2021 02:08:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj935yTWvuB8OWye9LIAmPi3ZDTqlUy/u96xAEXIMhh7WUdUrNSLe13wIROEs9dgR7PoIj X-Received: by 2002:a05:6e02:89:: with SMTP id l9mr2627313ilm.61.1623920916429; Thu, 17 Jun 2021 02:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623920916; cv=none; d=google.com; s=arc-20160816; b=q7njciXRK9IDwAvx6Va+YIXXsT2rqZAyWDmDUSAMgbItUaxfnnw/EgC6cNTAd1/hm+ 8FjL8Hl3A4GmlsrsoVYXyBQzsBbw80oGTlJsQh/sCRap0t7Ki9yLI6hYgX6asuaHQyfy 9yIAW2REBovIkV8r/1oVEDu/7wfFKIqfhyGQUK0mFlUmco1zNif7ryXh4bVOOP3Sc/RP DOXp+YwAoI3/kerQeZoj9/75fC1bpa10vWTTfVnV2bvTJCMLnVtQ79HzQOW/o6HJ1Vd3 5zDdrsQToH04V7fVSPTjeMo6/9S9ZecZX2BuKaz+89hMEjJa6/WVZ+g/bdisqNrpdFQD PtQA== 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=tt2HsxhZ7PtF3K3biB5JG2AWbD23H4UHS0xxvGqJRBA=; b=vVc+2Izr2eca1t97uY7a0CLbR7plqsIfjVV16J12DlBLe/4KHwvb8Sgz0I3ZCB/YV7 GQmBtBZmaeWvKP3zgdSCyoSjk2ta2+FTpXIHuDts2Cu2NyQE8YUP8Lw6qRLbEEyEmL1m G0srfbZm/QNZo6xrA+5+zaQ0YdrfHEfY66emYhMgFfxh7OcZequylqVzukleTcXpLDNH BaaDOKjQJ0Z/166uOtw/Dr0P85EzHTcsz4IqUp4jIe1vd2P5+p2nEebdRM85QSo0Z8Zh aGldS9PnPoZA8Ql/HDWx3s4lwbDADgXi1u4OKaR1F+Sj8/ValVgBr3gVGB3t482E9PnC tU1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 b2si4905261iob.88.2021.06.17.02.08.15; Thu, 17 Jun 2021 02:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S231389AbhFQJKB (ORCPT + 99 others); Thu, 17 Jun 2021 05:10:01 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4955 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbhFQJKA (ORCPT ); Thu, 17 Jun 2021 05:10:00 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G5GMs3d5Pz70PR; Thu, 17 Jun 2021 17:04:41 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv703-chm.china.huawei.com (10.3.19.46) 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:06:10 +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:06:09 +0800 From: Zhen Lei To: "J . Bruce Fields" , Chuck Lever , linux-nfs CC: Zhen Lei Subject: [PATCH 1/1] nfsd: remove unnecessary oom message Date: Thu, 17 Jun 2021 17:04:57 +0800 Message-ID: <20210617090458.1491-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: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-nfs@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/nfsd/filecache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index 7629248fdd53..76d68b2b4ba2 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -643,10 +643,8 @@ nfsd_file_cache_init(void) nfsd_file_hashtbl = kcalloc(NFSD_FILE_HASH_SIZE, sizeof(*nfsd_file_hashtbl), GFP_KERNEL); - if (!nfsd_file_hashtbl) { - pr_err("nfsd: unable to allocate nfsd_file_hashtbl\n"); + if (!nfsd_file_hashtbl) goto out_err; - } nfsd_file_slab = kmem_cache_create("nfsd_file", sizeof(struct nfsd_file), 0, 0, NULL); -- 2.25.1