Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp291625pxj; Thu, 17 Jun 2021 02:51:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyQYHHoottbiI/T5Zicn0+4gtKGWor1Btb4slrVFTUcyAqmBr8AFrDhOhCXZll9Aa+uzSX X-Received: by 2002:a6b:d108:: with SMTP id l8mr3015811iob.65.1623923510690; Thu, 17 Jun 2021 02:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623923510; cv=none; d=google.com; s=arc-20160816; b=MN7nwCAOilpm3A9UQxWdBGmb95Jp9jyU5CGXuagvVHBSlp0ihSshFmE5qxxYV9tAZD CXo4zHQKYYCIxy8QTt1TLi0v6jkh3bkWrrFwc+PDRWW1piHpypkxIhU2duH7ctrde3zj Wgj/lT2F4TbPPLvSpd8PVJYjTvrhQyoz9IDrDPbFxelCc0VBKXgP5gY+YOfkh0BMUV+g chOlE6yy/jPQPGxLV5WNZ2Qm38YGNyiJqg36R0DIgZTdQaMCSQ6maRLTFQTqG8GCHc/n 3+F3jPCHHLAYZaYWY+K45cwSb+ws7tbx5t7iEu2bW130x5HABBWn/ZUeFAKDNROHvQ4t zhqA== 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=fhKvz54/Cb26FbjtSaZrlSYkRYvKJmi7AQd3IO5AuLs=; b=SMXZkxnz3uAB4yA9zbnx7IqlTtDMZ8ORzSjGWOEt4Wv00feWpkjdXrJOGr0pjbW3e6 RifzcXEA/F7QF4D+WuE2wJ+k2ZJ6Ni2IjrLI5tkAaWPc7iefXvvjuvI+7xrYtlCPaAql mgRvrzqAiCWHV/UqVLkSaGq/NlXKDgT9B3VKzI4UUA8qrWipWtljLaretPm/1FdzAUDs tWj7zt5pEmXc3U1HQGW8xYXzGQjeXcM5BzBzcUsS5QNkSwvqw8lF1gAmrDPLD+fHlped Ji/cW5i1HxDoCCZU7twYOD6KJWlTFVLj64hKcoKVq4FKtm8u6Q6TsAh+/kijM45RouB8 7BnQ== 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 z6si5423674jan.113.2021.06.17.02.51.39; Thu, 17 Jun 2021 02:51: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 S231484AbhFQJQP (ORCPT + 99 others); Thu, 17 Jun 2021 05:16:15 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:4833 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231390AbhFQJQO (ORCPT ); Thu, 17 Jun 2021 05:16:14 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G5GSt0QJPzXgls; Thu, 17 Jun 2021 17:09:02 +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:14:04 +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:14:03 +0800 From: Zhen Lei To: Al Viro , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] fs/qnx6: remove unnecessary oom message Date: Thu, 17 Jun 2021 17:14:00 +0800 Message-ID: <20210617091400.1600-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: dggems701-chm.china.huawei.com (10.3.19.178) 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/qnx6/super_mmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/qnx6/super_mmi.c b/fs/qnx6/super_mmi.c index d282c2c73404..56aa9531cbbb 100644 --- a/fs/qnx6/super_mmi.c +++ b/fs/qnx6/super_mmi.c @@ -101,10 +101,8 @@ struct qnx6_super_block *qnx6_mmi_fill_super(struct super_block *s, int silent) } qsb = kmalloc(sizeof(*qsb), GFP_KERNEL); - if (!qsb) { - pr_err("unable to allocate memory.\n"); + if (!qsb) goto out; - } if (fs64_to_cpu(sbi, sb1->sb_serial) > fs64_to_cpu(sbi, sb2->sb_serial)) { -- 2.25.1