From patchwork Thu Sep 7 20:22:07 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: 9942799 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 4A70F604D7 for ; Thu, 7 Sep 2017 20:22:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3982C27CF9 for ; Thu, 7 Sep 2017 20:22:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25D522679B; Thu, 7 Sep 2017 20:22:56 +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 E8EFF27FAC for ; Thu, 7 Sep 2017 20:22:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755524AbdIGUWX (ORCPT ); Thu, 7 Sep 2017 16:22:23 -0400 Received: from mout.web.de ([212.227.17.11]:59136 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbdIGUWW (ORCPT ); Thu, 7 Sep 2017 16:22:22 -0400 Received: from [192.168.1.2] ([85.182.65.2]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LcgVn-1d9GIp48Zj-00k8Je; Thu, 07 Sep 2017 22:22:09 +0200 To: adi-buildroot-devel@lists.sourceforge.net, linux-media@vger.kernel.org, Mauro Carvalho Chehab , Scott Jiang Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] [media] blackfin: Delete an error message for a failed memory allocation in ppi_create_instance() Message-ID: <3f472947-091e-3e96-b278-093ca287b5a2@users.sourceforge.net> Date: Thu, 7 Sep 2017 22:22:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:FbITXKKSndfW+0uHslgfZq6pLMT1SnaFw1j7rjSFFUiqC9Xxuj2 AoZDJneN/WcG1vg1l5mDNb5esFeObxmoCr29CWWvnGGbXzJ6zO6w9S7PbkngUbAalVmF68W osPZLHLDC5AXS1glTX9tGD5TbeYKAao0XnOFwVXwRSYrUaD8/AMtfJpggxSrYVb2gjWYZeq BdsG2icOKfpRcMLcbEs9g== X-UI-Out-Filterresults: notjunk:1; V01:K0:ESV1I5QQZcg=:CNiTFPYzVearOkpv4M7C9W 1BJaIlth0Aa8RiMgVLSz16KJMqeKVzwciACA2RheAkKxGGTn22lzPmMqsdzO5mTbWyVirPM9C OXS2HSyj1Yzw4nKd/3lqq5HSqN/3MJQfFW4f5ERrJGvr3c6s7Uy/ZjgTm6fnMH73lWKQHqBB8 1LX86b1R+aN7eB1b4ziTP0j+r4u7eUpDqPbgGAtLfflVvf4vp7SMQuTlqAThn7wk5wS+3lmw8 mg2PJj62u7otB/YJN1+yiLHRit19tQSVj/vKsIE33xVSlb98b2TDn1geZLNs+1kKggwwYOT+v T5XgrhtDK4BT5DaFB8wyXJeMq4lolzUWfzJNMXtVBSi9ybCoji76BnGNNWlxYcKADi9hC+8fW aDfp5800LazdHsoAH+KLfEsm22Ew+/Z1svtSpGs3W/1d2+KblfoQPwILo55PobOpLJ0BlhMpZ tu5etzB2wwmGzBjgsLcLcBQ0SiwX/cXFZnY//1ja7besE0efXKS7vwLXuNDfmYy6lmBHyV733 NpvhcvUX2Fy5s0xoYYo3ylceeHMKMLulskC/0u5fvfc//YSFTS6SwayrJVz62EeVi1ky37ZPZ le1G+m6fGtUCCqKl/UTrhoWDPJL1VEV/UDwxQsCVca42zkOlg3LRXQMHpCR93C4d3EjbekOJ7 bjYMgMzJ5gGk93K92H4GPLH88icpKWwrPl3/Tz3tmnu3qIU83Yly9DtOgsLOucaGl6bK1fPam HXQi0Hmfx7W1scexwrmQcTG9Dl4I2d+/eDbBAbOHsqKt7bzO0M2cQ2Ddc0gMKUDXJtGbf3JC3 XJinC5pBLbrt4FNw0H9LInRWSRHEt7I0koV7Jg/JqrbBklTeRY= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 7 Sep 2017 22:14:43 +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 --- drivers/media/platform/blackfin/ppi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/blackfin/ppi.c b/drivers/media/platform/blackfin/ppi.c index 37169054b828..478eb2f7d723 100644 --- a/drivers/media/platform/blackfin/ppi.c +++ b/drivers/media/platform/blackfin/ppi.c @@ -338,7 +338,6 @@ struct ppi_if *ppi_create_instance(struct platform_device *pdev, ppi = kzalloc(sizeof(*ppi), GFP_KERNEL); if (!ppi) { peripheral_free_list(info->pin_req); - dev_err(&pdev->dev, "unable to allocate memory for ppi handle\n"); return NULL; } ppi->ops = &ppi_ops;