From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de ([212.227.15.3]:64162 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217AbdHSKAU (ORCPT ); Sat, 19 Aug 2017 06:00:20 -0400 To: linux-fsdevel@vger.kernel.org, Al Viro Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] hfsplus: Delete an error message for a failed memory allocation in hfsplus_create_attributes_file() Message-ID: <7c98ed1d-24a1-2bd9-6302-3d4de9d9943c@users.sourceforge.net> Date: Sat, 19 Aug 2017 12:00:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Markus Elfring Date: Sat, 19 Aug 2017 11:34:48 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/hfsplus/xattr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c index d37bb88dc746..b921eeb8cc31 100644 --- a/fs/hfsplus/xattr.c +++ b/fs/hfsplus/xattr.c @@ -209,7 +209,6 @@ static int hfsplus_create_attributes_file(struct super_block *sb) buf = kzalloc(node_size, GFP_NOFS); if (!buf) { - pr_err("failed to allocate memory for header node\n"); err = -ENOMEM; goto end_attr_file_creation; } -- 2.14.0