From patchwork Thu Jun 1 20:49:06 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: 9761111 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 79C0F60375 for ; Thu, 1 Jun 2017 20:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69F102851B for ; Thu, 1 Jun 2017 20:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F1862853A; Thu, 1 Jun 2017 20:49: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=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 009F32851B for ; Thu, 1 Jun 2017 20:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbdFAUtm (ORCPT ); Thu, 1 Jun 2017 16:49:42 -0400 Received: from mout.web.de ([212.227.15.3]:50648 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbdFAUtl (ORCPT ); Thu, 1 Jun 2017 16:49:41 -0400 Received: from [192.168.1.2] ([77.181.221.49]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lym5H-1dw4F10JyZ-0165rH; Thu, 01 Jun 2017 22:49:08 +0200 Subject: [PATCH 2/5] ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init() From: SF Markus Elfring To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aaro Koskinen , Russell King , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: <85e2ec7f-f650-28a2-6cc5-0b4b52e44183@users.sourceforge.net> Message-ID: Date: Thu, 1 Jun 2017 22:49:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <85e2ec7f-f650-28a2-6cc5-0b4b52e44183@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:j3AJXx9lWTDlZT/dWlbWPq65gxYCSiJx7ni+SoO7yL1Iiky6+YR eClLeBUwbsBO8ypiRuX5AQHr0SEe20HhD93ZY0GyPYQaXB6tHSG84Ygbjimt8YIdQ1B1NMI 81q+Pmm1Qi1QQYwQxN9T6ptJfb1BD381JpRD9tCecxBsCibcR+YXv9eXgq3BaQlkCP6xuMa bq2xEMtQGtbdqRVqytKSw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/9xGbBH7f84=:kC0dJYqp+8ubFu8CX+bm6r eOOqQXqL5SBg3Zr7VGpCORloGs5lvSV3TDky8bnRijzbPx9qbTKkym41+fXsLvh8A2k7wD1Vr APzwSA0SSh3SNHyvcqEWTVRHQgZ7z7kdkcBQ9FS3gFqqrpgnF9DmR0gIufldMPGvOK5jx2aoU UcLTHhjpjsWfMuGrGpwPp8oGHbRRU4K9Ea7fcrtnmq864RvKMFQyuUNwAA6zVjAYtEmuKgL+X jwbN1LS0y6GTes8AieToiL+HGiNlbZZ2S5NcGqT3CNEjd03gFFpMeRBixgnp9xOxL2WULphYg pjO/OPpR4IY+lmFRPSWv2f+e2wDbd9baF5WU6nOaPPzgKay0Fq0N0LowEL+5AO7iizQcVQOlx /eLECinKb8YVnvvGahW/AQEErCj2EOX3BCsj2gR1LMSYr0O34qpQWZc4lPjWLq3SsBeshDg3c M/gScTT65iXd4cESvG4mTuwwjovtQSDyNNgzNCES7kmrlm0Rg/7HhoXpDfUShHE7WOXZtckBF Wj1KOaY6e0+JumVm/wgmoAB4a4HxeY/hOUbYzS4nR7IvUxlrmKlyD85JgtdJSNrYuG+jli3Cb 4shMc950d6G82H0kP5Lh3VsoVXEBfgPbPTaYnl1q2Ys98UYrDgf+a1BcqbNzidncxvn9RBdsy kOyEwKXhQAXqp4eJjp33DPcFEgmVYBPVpIyD4dqUv83Z5uB+IqUPTev5aA4piCHeNUPYsyThO 8l6UJ1DWCmsNrE/emmKQKmt8K/in1XzzcVlf1rKwocnpfWzcBajEa45mc/GJfKWGzC+seOVr/ LU6VNpp Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 1 Jun 2017 21:54:36 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring --- arch/arm/mach-omap1/dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c index 823dba3dc033..c545b4e01d53 100644 --- a/arch/arm/mach-omap1/dma.c +++ b/arch/arm/mach-omap1/dma.c @@ -343,6 +343,4 @@ static int __init omap1_system_dma_init(void) if (!d) { - dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n", - __func__, pdev->name); ret = -ENOMEM; goto exit_iounmap; }