From patchwork Wed Oct 12 15:12:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9373429 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 AFCC5607FD for ; Wed, 12 Oct 2016 15:16:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A149C2944A for ; Wed, 12 Oct 2016 15:16:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95D00294FF; Wed, 12 Oct 2016 15:16:46 +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 204092944A for ; Wed, 12 Oct 2016 15:16:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932963AbcJLPNL (ORCPT ); Wed, 12 Oct 2016 11:13:11 -0400 Received: from mout.web.de ([212.227.15.14]:63797 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755425AbcJLPMi (ORCPT ); Wed, 12 Oct 2016 11:12:38 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MC1VQ-1blZmF3z9M-008vvv; Wed, 12 Oct 2016 17:12:20 +0200 Subject: [PATCH 31/34] [media] DaVinci-VPIF-Display: Delete an error message for a failed memory allocation To: linux-media@vger.kernel.org, Hans Verkuil , "Lad, Prabhakar" , Mauro Carvalho Chehab References: Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall , Wolfram Sang From: SF Markus Elfring Message-ID: <73ab1e30-a0cc-cbf6-eed0-cb992fca8789@users.sourceforge.net> Date: Wed, 12 Oct 2016 17:12:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:zmQ6gHzRlzXHPWuFIjMGqISIlZbS3c4RZtfqUWZxX9wShqb7RTi ntvL9dSMIxqqer1w1LAPeCOtMFbBgiWeD+9atZCROEc/W18l/fM3c7uo5LQ6JLlejv8L+JC cChdWrt9S06ZZl51j4xLp6v/i9QKO02cxiIvxEzT2WRyx/SI9J56QwXC5MhHiT1s1+1FnAx YGUJ/JMLiWaexGABg16+A== X-UI-Out-Filterresults: notjunk:1; V01:K0:o6DtscXgziA=:nvQOROGXHvxx6bkHqJSGHL zOoAd8FAkicXQLvqurIJAbcZm6ASKIGW/YGLDhdPCRbOvcbV/t1FlxGBWKPXqwfDk6f3S4Voe cWf1GtECRhIw6vws78lQayyX9F+NfoHD+zEK549nHAnz//fkq/Ol2Zj2w7294VfsE0i8X2rxG dcjYczl74rkaFazaOS4n3lSZoXd7/0hXWivhBi/Ve4x7dKWlXrAqFOH61AMYNoIp4gjFmu8Mm 9Napx+GTzHZFv2Tvmd2Zm8b9rmG4MwmmBF+dfRGXhby7MB5Pa6jtp9aTT4FZSIRYHSVnXvBTv zlumhCybLkCc0AFBv/9hUjV2bSYNKGq7AJ4WucyH38Lwq6EJ0HHv3jIdMBhFAJH9m7IGsQiuF 6lCJShsX9Ks5JhF2DjUdsYIS/JHR1OuxxnQjJ++TDu2iWL9ItsTR9hgUaR1vo5ya4fzDrwqug TALFFj0IW8tqFKBfbWvcRaCQNjw4l0XUkJ2n/h/AMqctzT9Q20x8/or9AgCnnj1QUV1qAHttH 3bG3xz6tOH8yiu7QTDpECTf7/Rmv2bxELo1a/B4EUJW1/H3g1z29BjvHpnZ96vFsOAJ/Z5l3B cHrVLyjIU/A5vl6QZRU6pVtNEDaSMdmpat28wu7GVIvCIjWyxQygB3jaEyIHPcKEMUGwnFoVm 8M8CDKGqpytIEC1g23gRe4O6WY14piXodPZ6b626KHwbiAuWM9VDPQhVHbsJSPUdb7wVp0aBQ RA/N7FSaNbJG0zXRwyIuFT2EFbut0vKVrouWp519SOTrRYvRUIL0LvBUo70MFu2nrb1MZJ1mY al2Qaux 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: Wed, 12 Oct 2016 15:38:41 +0200 Omit an extra message for a memory allocation failure in this function. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring --- drivers/media/platform/davinci/vpif_display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index 80121e8..3347fa14 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c @@ -1281,7 +1281,6 @@ static __init int vpif_probe(struct platform_device *pdev) subdevdata = vpif_obj.config->subdevinfo; vpif_obj.sd = kcalloc(subdev_count, sizeof(*vpif_obj.sd), GFP_KERNEL); if (vpif_obj.sd == NULL) { - vpif_err("unable to allocate memory for subdevice pointers\n"); err = -ENOMEM; goto vpif_unregister; }