From patchwork Wed Oct 12 15:04:43 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: 9373401 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 0E85560772 for ; Wed, 12 Oct 2016 15:08:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0189029DCE for ; Wed, 12 Oct 2016 15:08:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA23D29DD1; Wed, 12 Oct 2016 15:08:14 +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 E89F029D9D for ; Wed, 12 Oct 2016 15:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933773AbcJLPFM (ORCPT ); Wed, 12 Oct 2016 11:05:12 -0400 Received: from mout.web.de ([212.227.15.14]:51101 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933602AbcJLPE7 (ORCPT ); Wed, 12 Oct 2016 11:04:59 -0400 Received: from [192.168.1.2] ([78.49.9.22]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MFtKQ-1bfVv8229G-00Es1g; Wed, 12 Oct 2016 17:04:44 +0200 Subject: [PATCH 26/34] [media] DaVinci-VPIF-Capture: 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: <6ecc9791-df4d-ee71-8535-535b2def961c@users.sourceforge.net> Date: Wed, 12 Oct 2016 17:04:43 +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:ZqFShGMYUkikY19zep6TyJLw3Vtcdqs8A1dV3/CaYaSxDy7IBON 6gO5TRU43INB75FeN+52t15/VutwZEOq1HCSJqKpRUwBi5K7PntioVxfbN6eXQjOVXNVQed yiSewC3i228mRNqJ/k1oSv2ZEG8qGKUVvWjC5hPQ5zBV2N5rhMP4+bxp+3EFJguWrD/Oo5I FAURTdd6XnfxLzLloKrog== X-UI-Out-Filterresults: notjunk:1; V01:K0:QJduIyhepuI=:m8UNkVn7oVZqXh90s8LUvL ZP47duf1N3c52XhLktpDgk/tCrqXek2ilp5dJ5GXmzPzuYO+wpqDUcUFnOLFiDxug7+CNl+hw 13iRjKZKqbLPQj1E2k7ZSH3zf9nxvcTL4qHXvipFmZM2CgaUjqUkOf09chjL+Q1C5TVHvdHiM 0G5QsXY+BpEpZZsBU4bWi01UHvGIxU0ghixwcbyCNhhMJFFHuGDpJngHNEq/Z7buaOKUhvAEC ZKYfLsv9BSNyODcqJO2h/cLWAtaB6IQPBuXi1ygUtkF1Q+0F00OlQ9b8pi1RxoYGs3pF7BMON tfcAPsr+nIZI4WnwHmJVhcG/0zg1hqehN2o/vFFey2BbwbEWxVXT8oxKaRReDNy8F0c/jDn/g xN4ZgUSByi02DjbzitPYAsuNd9QDndK10854wHBvkEN5GvghsECqJiC4hpfXX51d2/6E8KgQB Xii28PwSfmhBmPeeUYbcfFY7J00XCxyIhg+omCai4ek9oH+6+/hcYCVHVVPJHhlkOIi2r56SU aeG00/Kj6UobZ8eavVDpyafK8QPrwurC7dU4Pi+1oN6zTioHqp9UwRrRbNbgfjdlKPlnQfKsr 50zQeyFbxH95jPsl02Gz1b5OMsDKjw6XzQd/iiT0rjvCXTg2xLw2SgyBhGilQZd0ZxZrR4X4h 3g4rxZpG/u67pWtdh+5QKis0eimgZFmpCWF6Eo/M0/5ij3MBsR+e3Sz1e9SV7T0XvK4R4uNnp fjA0Oz5E716Ap+FxQwRCOofmRi1l1jQFC61g53oteNmQ5b9RMkII+XIeX1xncvdSHiByOntEd IoECj/N 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:18:45 +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_capture.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index fb9e850..24d1f61 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -1466,7 +1466,6 @@ static __init int vpif_probe(struct platform_device *pdev) subdev_count = vpif_obj.config->subdev_count; 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; }