From patchwork Sun Sep 24 10:22:55 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: 9967863 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 A06356020C for ; Sun, 24 Sep 2017 10:24:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91E0528D35 for ; Sun, 24 Sep 2017 10:24:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86A8A28D43; Sun, 24 Sep 2017 10:24:18 +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 8279428D45 for ; Sun, 24 Sep 2017 10:24:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751754AbdIXKXo (ORCPT ); Sun, 24 Sep 2017 06:23:44 -0400 Received: from mout.web.de ([212.227.15.3]:60667 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbdIXKXm (ORCPT ); Sun, 24 Sep 2017 06:23:42 -0400 Received: from [192.168.1.2] ([78.48.160.4]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M2MuC-1d45vr0nSu-00s4xC; Sun, 24 Sep 2017 12:22:59 +0200 Subject: [PATCH 1/6] [media] omap_vout: Delete an error message for a failed memory allocation in omap_vout_create_video_devices() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Jan Kara , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Muralidharan Karicheri Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Sun, 24 Sep 2017 12:22:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:yIg3Eqd6LdVBFamlzcE0lzogJ+8+1oumfRUZxrRtdQOYySslGef LcXtqNaQzazqM0nX3Ri/sdzdrV89QecuMCk9uKkY1Sq24NSKbhe3y/alJH6pT/rpXMa55eF d5x8qWfp/TSeOEF5jIDl0Gz7Dhf09kePP6YzM+ikbmW4T8vZpd28fTyIEQ8pYYqtc+Eyv1I iGj3Zpmc3A7O+XbFmMWQg== X-UI-Out-Filterresults: notjunk:1; V01:K0:kMFMuRuzoSo=:y1VOPeMz9TfexDEDdAcrzs QszdrASvviSezRU/erAFWtpDhTw67hqPrvkthyawW2FKpFCzMN0XIl1aIpbZQkDXOE7wZQEMn XvyOU++rSRlgdNbq5waWk1786dljpx8m0DkDaTJOBqAc7aBo/V395F9skWdL76kGxjkP6412S bPMjHTb9GFrkQNzi9LVuTlfzt10UUcpLt0KaMCEmzMGdiHfSA98Cvs5HG4i9gqHNVUINQcAY+ UOjkDFsHOXXePUQ6Mxa7ToUOoUFUZWDAc63LELBiLIVQDV1rFBO9hRna9bw3UTJxX70hmhbPe 8zNTBOsSNyNZ78bA5+iDWV6sy0pCKdPy9wmhY9+jV2NWHCRvi9axIgAPqUFrEJh74+rjnif1f ly7iHIUKdK96MIJ8h1VYfY/LnMwF9FkVvdOKr3PdU/ACO3UqdZByy7A/OWnVUFNgJk1zf7A5C EXSLwvUFKaLKWamZQykZwFP+vA+lF7g+t11u345ac9NRRERmUUEauT+4WmIfMzOz0VTEKKpfs EciIvuu4fyfHkEyD8Z+amxPc6uqHJ9HZtIBgzWk932NmOeAVoXJrZRXr1AB4+0DP06vl9SBKU XdmFOhXqt2cdgsAnCj3JMC5pNqxCb+ePhdoQUa8oJZ6+U3Hs83Mqth8raumzglJ+5k3KOq+KK q3eJJboOBHxtOMIZXLdQ38tPUWF6/S5a9VJL5P7OIw6ncdthYF8cUBCRE5vyr9vZDGT6onrde R/KstNoY+WtOW5YA0KMOZhrFgU5Hji2Et5fsHkkAwGz+za4yZuISJox4t5nf4yZpYKi9rKW2j TX6Cq5Mh1y6C1dqH6BGUx0nijQnMbawZ2PuscsQWL1DLNdzt7g= 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: Sun, 24 Sep 2017 10:08:22 +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/omap/omap_vout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 4d29860d27b4..aebc1e628ac5 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -1948,7 +1948,5 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev) - if (!vout) { - dev_err(&pdev->dev, ": could not allocate memory\n"); + if (!vout) return -ENOMEM; - } vout->vid = k; vid_dev->vouts[k] = vout;