From patchwork Thu Jun 1 20:51:04 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: 9761123 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 E27ED60375 for ; Thu, 1 Jun 2017 20:51:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF64128544 for ; Thu, 1 Jun 2017 20:51:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C35A128543; Thu, 1 Jun 2017 20:51:47 +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 7C28F2853A for ; Thu, 1 Jun 2017 20:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751130AbdFAUvp (ORCPT ); Thu, 1 Jun 2017 16:51:45 -0400 Received: from mout.web.de ([212.227.15.4]:62619 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbdFAUvo (ORCPT ); Thu, 1 Jun 2017 16:51:44 -0400 Received: from [192.168.1.2] ([77.181.221.49]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MQw1u-1dT3zT4AMI-00UHc9; Thu, 01 Jun 2017 22:51:06 +0200 Subject: [PATCH 4/5] ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_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: <3a130a87-96e7-792b-29b7-f43f93ae78bc@users.sourceforge.net> Date: Thu, 1 Jun 2017 22:51:04 +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:lo//g3FPlTg9fUakY7c5LR/X+xFzxbb4mMhjC67BXfaNB85ocEg 41EfFfkPwWArOpQ3/AETEZoYbOHdt+cgjz1ltV1XQK9+OmKeC/IeeiLv5/THXcAUagLxZUM FduGgoc6KGk/rjF6TE7YeQ+Yn3mIpt7ZrZUF6H65BJYoKc3a+egjndXocQcNmiWcO/wF/pP MSj/3O5kyr0IhZCYNQ+Zg== X-UI-Out-Filterresults: notjunk:1; V01:K0:kEPPyjKhQZg=:ev2goChLgMTyIrAlwrMkwr 4206OFZm+t6uKLr7NCddxPgaFlIVFUonVB7pOzPZN55bhv8IrcizYzqUAfDaSt28TiMMqID+o BotILLRuTqkWZDKFoMaKqZK3qgBPJInjMHDUg0/CwQHPQeeJMH0YyxOzTtA0Ezh6x5OhG920D q9uOW8Yvi6Enc8eMYdQg5CdqHFXLW9ZudB8+0MFQzEcJIfElbGqedlXOiWIgyjIl0rfaj2jWJ sgEWRWzrYUlsYe8lNN/rGjdj/BwIJ83HYF1CrXHODIJ5DeZMEJ7oUcfk7V241QrunISGq6xEG cUeuJs3UVrI6ioAqmh2ccKVj0yspkLORlcW3VlWOgYDyrApVZlS9Ym3wvB7jtsvPyL1+fUPQY pUYstvc49OmtlM2Hx1SE1dm6VvxzvFhmp3rEaAQY+RARlClbhU+FK3QNbuCqG9ixnnk1wLXms PoG6z4pPk8S3avzS5QCe26CjloDblLR5H6O9OLvepb/aA2Md6B1Ujn92wK0NT91dgcAPLbsNe kmDY2FHpVVLcFUa18uw6x4ElspDoyvGh0+wUwBmW1B6PEAOlF5jlzBYv7Ae7hK5j6r9i8cc/h cfVj0FvSN8+aEfJUJF7HP6a1MdyRWUttGKnVt2hW/62ZABcagiWojH1/CesHfMsgzLGExQYI1 3gcHa5FHm6HcSqr2Z1sAsJe6u13GkKrieHwea7c1OsqWxqpJil5pWCm+wTVRc2e1LkAnwefp9 8iAt/F6rmZlGqYdRExi4aPa5vCmHGbKJKvF7MhZJEOeahvI8NlHxUZ3dtUXEBneNUROcIe8sa R3HYwKe 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 22:04:29 +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/timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c index 06c5ba7574a5..637f8c9d9f10 100644 --- a/arch/arm/mach-omap1/timer.c +++ b/arch/arm/mach-omap1/timer.c @@ -136,6 +136,4 @@ static int __init omap1_dm_timer_init(void) if (!pdata) { - dev_err(&pdev->dev, "%s: Failed to allocate pdata.\n", - __func__); ret = -ENOMEM; goto err_free_pdata; }