From patchwork Sat Aug 19 10:00:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9910419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8900603B5 for ; Sat, 19 Aug 2017 10:00:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C4FC28D96 for ; Sat, 19 Aug 2017 10:00:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BBA028D95; Sat, 19 Aug 2017 10:00:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42BA828D96 for ; Sat, 19 Aug 2017 10:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751705AbdHSKAV (ORCPT ); Sat, 19 Aug 2017 06:00:21 -0400 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 Received: from [192.168.1.2] ([77.181.1.201]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LrsGE-1dZtBU05zK-013aBJ; Sat, 19 Aug 2017 12:00:18 +0200 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:uQMJJGEfyXbm3h5cOFwqfT1T/5yuq48lWeVIepZos/FPUR9huoB FOznkIgQQjw1ew/bMzFm10KhGxl66lkaRNnvUvJNplKSciFeLav4/z9MEQhdGbpjUS3INc0 Dr2LJYzNS11cPYMB/9zBbNhB6p0SHuuebGSWDHGJlyJmSa5rt5aQyk/91Lv3SmATEKD/dn3 x111ErtJbgwMMyaS5Odtw== X-UI-Out-Filterresults: notjunk:1; V01:K0:h+sMnGOR+tY=:kb2lQMRqZNkzm7xc37kZqd aPbto9aA2EG6otPxn8SvOGLVqzmMvuvW5c1S6s2OAAfEpET8IPmYKwVxFseMSp+oYVAiRmXb2 S/TKPziSiXPCIqNe5qY1mYM8AGzp8SkDUyi8RhksdvvCb/d41eReznMvGno4IjxU26ArIydgv 4YHltJ/wpwf++9X3wpNgFPdvqrhE8yQDSxyn0K0JSodO2+h96ypbiU9GfcI4gHUrTSmWM8aX3 nNG0WP5YuxQoVecQqQ2UjtpUeaVBRA5D6c0+mBN1wgwnOGzpeGpRrRZPUTs0l/DKy2LVm4RzC /XyzZgMrkHWOI5pe/Pb0H2T3nxqQvq8i0zrDKx5InwfFWq18+G1lJnFRYzG8gfvxP/9paWKqm cDae87jt6jPCc0tqUlMqfOUD1mPNkexZsXj+rmxyRKSf5j81d95n4Av3YmsNRyXd/TICSDK0h vLMkCdG2gJRDBShQcrRi3Ud/7M+c8FROi08Hsl0WbqakPr4aveN8dA7RBloaMj7fz7LX/Inuq OvhfatUq+Jjng612nfnTMQH+P5AqjEMIimDuH8e9AQSdR1r0kLBTKtOI4NoNwfTIcVGlzGvLZ yaJ4iH/mFtnowd08incpGMKHVcCey1iuWbujRxawS5q3uhM3e2jWDLIgayA7HgmQaS6fASU70 MJd5VklOVMdEhYh9vL5cwa1csnjw+xBqkTnIdMf2RSV11ZcDtUgRFthkaxywKjE/88kbsOmxk NmOTpv2wZ25sUVeJB53c5qPKEj0G72MFEDuTKtaTxruF0B/ux9+jyVgEQH3JuUZJwucRaHtSf R8DQLAuY9/fFgmicoEW31Iclf4b2LxTq8B6Oc5CaAo2pRf/1DI= Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }