From patchwork Tue Feb 13 20:25:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10217499 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 1039B601C2 for ; Tue, 13 Feb 2018 20:25:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F295E28EE6 for ; Tue, 13 Feb 2018 20:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E711828EF4; Tue, 13 Feb 2018 20:25:27 +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=ham 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 9AD6828EE6 for ; Tue, 13 Feb 2018 20:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965650AbeBMUZ1 (ORCPT ); Tue, 13 Feb 2018 15:25:27 -0500 Received: from mout.web.de ([212.227.15.14]:59539 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965610AbeBMUZ0 (ORCPT ); Tue, 13 Feb 2018 15:25:26 -0500 Received: from [192.168.1.2] ([78.49.42.52]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Le4PE-1eTBE908Am-00puj9; Tue, 13 Feb 2018 21:25:17 +0100 Subject: [PATCH 1/2] dma/ppc4xx: Delete an error message for a failed memory allocation in two functions From: SF Markus Elfring To: dmaengine@vger.kernel.org, Dan Williams , Greg Kroah-Hartman , Rob Herring , Vinod Koul Cc: LKML , kernel-janitors@vger.kernel.org References: <4d9b3ca7-e1bd-42f9-5933-550146812f1e@users.sourceforge.net> Message-ID: Date: Tue, 13 Feb 2018 21:25:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <4d9b3ca7-e1bd-42f9-5933-550146812f1e@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:Zmg/8+I2K5Jt9JM81WYjUHfzEjvuI6duxqBjtUp05y9PYHTfJS/ qgEHgF33ZliSHKGv3NXLd18Ae7AvlltQcgzfOqpTgDmzhHx++z5V73sy+74sh2af97Mw+VI bPt8fS5vwvyvTReTNnxhQOL1zUKqkdlgeT73pN6LOS7xNjXlGKBhKqulI6PiV9LVd3tMZqF dCHaRVlR8g9DTGZpkhpkw== X-UI-Out-Filterresults: notjunk:1; V01:K0:59g5f+wz5us=:sWHm9m82qWv/smSa29vq8W T8kGuiCV4PTH8bBY4G6soo8Rydl0quud4SvbjdSoMuYAcYgbwGoIs2uMxoiUHnRXnKDfaToBs zh4du/EVvxmnAxmNKrrbYVwHglIft4U9VY0TOg+SQuDDX6XkfS1aBA2+O3tPWCTrH/vm/j7Jo RICEddZ7lnB6L7H63U/KZnf3GCeGHzgw3Yv8ODrCMknH5td09BDk6ZrlNlc8MdTKLkZ9UPSkd g3xtNvgzWrRomdJ3xyHBZPwMnGJjtJl/SVfsEgYDgGPPw3TCKLn4QbwmJB+ooorTzMD9ytbYQ ynQbT1+KSpwqndebfnzEk86LFD8ZgnE11rLD0Jz3FJBHGmVauQRDDBaD85EeRy1s21EBU/fKH JC6kuwlK6upbwoUdhb+OWlpall+oXNt/fbc7YB6EDc2WoaAWPFcm4Z0MjfYK4Owfej4laHcF7 eosPksmoZMlqAO6ugTUmGGvH72b01AUQ+BXu93+8NEiDBf6HP+9OfDrru/qfxFP8aqLSrnP93 DafM37NLCtDUajKHdue29qUizDtfmOdcPzaC0K9CxRU7j3kAuCaJSTo/ERBJwdzvtcgpqCHKf AHokxyHeCzaQGUVGtxIiGtYpNscJhCFkcFmH/nawA3dXUES7N07PsUduoqnPFWcjqf16hYX5e 2nQGOW1okUbb75DkcLAlwa/O/h0Qy3jGYd/b5oVENIozSilXiz9P9sjII/Jxif9Ac7DZW9ilo yU4eB+wUnaMldJLmbNLmY70PZ3hcVwOfAD9TdFekbDViYkbM7aKhDs5o6nwXoy9+QCxJgErOw jaGYSAWks3aQVq36F4RbcdXemAl69vbUeTHmM1aAqsslq3e2U0= Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 13 Feb 2018 20:42:40 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/dma/ppc4xx/adma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index 4cf0d4d0cecf..f4033367d59b 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c @@ -4183,7 +4183,6 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev) INIT_LIST_HEAD(&ref->node); list_add_tail(&ref->node, &ppc440spe_adma_chan_list); } else { - dev_err(&ofdev->dev, "failed to allocate channel reference!\n"); ret = -ENOMEM; goto err_ref_alloc; } @@ -4468,7 +4467,6 @@ static int ppc440spe_configure_raid_devices(void) ppc440spe_dma_fifo_buf = kmalloc((DMA0_FIFO_SIZE + DMA1_FIFO_SIZE) << 1, GFP_KERNEL); if (!ppc440spe_dma_fifo_buf) { - pr_err("%s: DMA FIFO buffer allocation failed.\n", __func__); iounmap(i2o_reg); dcr_unmap(i2o_dcr_host, dcr_len); return -ENOMEM;