From patchwork Mon Sep 18 13:53:53 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: 9956735 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 834D2601E9 for ; Mon, 18 Sep 2017 13:54:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7537E289AE for ; Mon, 18 Sep 2017 13:54:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69CC0289CB; Mon, 18 Sep 2017 13:54:16 +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 2B710289AE for ; Mon, 18 Sep 2017 13:54:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbdIRNyC (ORCPT ); Mon, 18 Sep 2017 09:54:02 -0400 Received: from mout.web.de ([212.227.17.12]:51115 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752538AbdIRNyB (ORCPT ); Mon, 18 Sep 2017 09:54:01 -0400 Received: from [192.168.1.2] ([78.48.130.71]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MbQOe-1eAMsw0rMS-00Ijrn; Mon, 18 Sep 2017 15:53:54 +0200 Subject: [PATCH 1/6] [media] go7007: Delete an error message for a failed memory allocation in go7007_load_encoder() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Mon, 18 Sep 2017 15:53:53 +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:FgNKJl37Gng9iYkAPJwGOHx/cER8hmD7r/arRfW45lO/i/WrpUL ebeVhPtVUiBilWE7oRPvvHSL15ycK9T/A7ylEAF3kh0aCVw3Yg02LT511eEAC260ZHrOhGf o7b0DAdFn10/lZ4N7hYUFvzyFMQQ0kY4u+5L1MoVJYQI8DTY8rpcVsbYWle52oB3DSblZUo yzdVHpxKbO79duRDXSn/A== X-UI-Out-Filterresults: notjunk:1; V01:K0:wsv9GgItjlY=:nOCtZCizhhgJS2m5SWbYg6 p07VuOIHbZ1ss4Z9m7Q9UNOup9bdKjRGwOQTQ3P7cVuWs05PAf2Nz5wcSGFpdQ9P/oMIEGvgK 4W+gAR9U2UN0iVZeo49ifftuLYbNkW4cDeU2whtH/TXPp2B/LgeCUPCnLCClYK8WSoprw9lEt xkL2p7RV57Chm8ZoMyH/0P4ub4T7PcgL/UY3ulI9liPhvrqiiCFwyNvl7TwbYfDcGPjZJRdIS x3U5qICo30zGWlTWj8EWH1CMR/bzeYFQRSWkAMTaI8KhM7pJ2jBlUnM1v30Y9voF5Oh4zxaCK eFRLEmgHJeL1XT5ChHftygX0+vW8kPpk3+ojjPd6uJL9YZ2EGLH3FNqL4m0Ra9YdjjDLGwaq6 pNTEuRtZtKUJ8Xu/pFC4PguFdY5EvUtG4WHYqQu7Jy2mEb83LUSziEs8XNgxIm/Xw9kSNWpVQ DzW6UUbPY71GDYO4iKxooM2y8vcuVmqYToWT2fkGl8KxGIbzTpTai4wlW4xWKGXP0iNb1FO75 PdFguRX39oM1RmTHXEFF/Hoquh90v+Hazdk5dtegmg+U/DzL2+fNRtGoQ17NbYmU54tijb/FC nD+kCWRBEJ8PAkMpB55bRjkiZeicKQsqaZnkCPU14cRT3BMgaGWZSaGZVpb1OJKFzkVqYk3TE BX05BSiZeahlm9+zi5lwRhWOecRHbp12nJxFOAXpRfGzUYUfUMDH72DqeA13cTvANxEFSIHNZ CeO/0J87XAzZxS8X7VpPcH9s1PdQoo8683IHY3eYD4y4vNJMZ9+fwuIrGNmZFGotgmJ2PoTzE Zo/Y2kcdxmxcZk4H8TBVyP1UdIVp6IQe5qaXb9KLrgxUjO0W5s= 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: Mon, 18 Sep 2017 10:52:42 +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/usb/go7007/go7007-driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/go7007/go7007-driver.c b/drivers/media/usb/go7007/go7007-driver.c index 05b1126f263e..222332189fa4 100644 --- a/drivers/media/usb/go7007/go7007-driver.c +++ b/drivers/media/usb/go7007/go7007-driver.c @@ -107,4 +107,3 @@ static int go7007_load_encoder(struct go7007 *go) - v4l2_err(go, "unable to allocate %d bytes for firmware transfer\n", fw_len); release_firmware(fw_entry); return -1; }