From patchwork Sat Sep 16 14:32:06 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: 9954367 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 5DA4F601E8 for ; Sat, 16 Sep 2017 14:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50E3B28B88 for ; Sat, 16 Sep 2017 14:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4600B28B96; Sat, 16 Sep 2017 14:32:51 +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 09ABE28B88 for ; Sat, 16 Sep 2017 14:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbdIPOci (ORCPT ); Sat, 16 Sep 2017 10:32:38 -0400 Received: from mout.web.de ([212.227.15.4]:49560 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253AbdIPOch (ORCPT ); Sat, 16 Sep 2017 10:32:37 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MIvJx-1dqlAA0uTZ-002ay9; Sat, 16 Sep 2017 16:32:11 +0200 To: linux-media@vger.kernel.org, Bhumika Goyal , Eduardo Valentin , Hans Verkuil , Javier Martinez Canillas , Mauro Carvalho Chehab , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] [media] Si4713: Delete an error message for a failed memory allocation in two functions Message-ID: <807ef494-8995-59dc-ee51-c7fbad3e01fa@users.sourceforge.net> Date: Sat, 16 Sep 2017 16:32:06 +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:cHHybSGH10Cve6LSf0JgxEs4nLpe2eVl6gt82HDfIP2Y1XaXKDb IUfZRKWVwywxCzKasYaO0KjttzSy7vaqY34s26rj0Kr0SI4QLB7MbzR2m56b0xtMBO+fggB pqymEm6521AeWx0WeMVvVTSSKe8xdRque25ZeDXRV6zqI9nfjwHGmqwqu0objwWnY5s/tCu I0SvL5NaUBgN4B8+3D1vw== X-UI-Out-Filterresults: notjunk:1; V01:K0:irftfE90L38=:eyDJiWbM56AjFMrB6JGIGl NsxEoas6tjLrSfBaRA4qCZHWgcToLTZvMFVoutFtRrUHxxvLPlhFMI7Bgah06M6gOmuSOxMGJ y5YI1geAS75vCjRUXEfqTHqP/EkeBUh9f2gf+xT+CB4XSGQsA6lZJBZz66tm/lzsbU4jfgcpc eEl3Gr5ov7MPAr9P1Qbpy29DVoFYTdhJrF8KACq4w4xvWTaahujq4934lJLVDYnxkF1UzEsTm OlQsjs1Cr8dlGGcYmrlJnzRTzldLT8PP4LX7UKRgvvjZ7O+D3hCfZ78dPSoq0A1PAkH6AHM9E YzCM+EgMJFVG6psVLEgRXSr2/EucqB8QaJfERNM1VSJn33yUcpSx+wmkK6IRJRO5+fHnRl2pd InGezkKtg96aOO9eaD8IlWbSeEcmVpqxmtMXHmfQJfFJpA1BgnPV/TNhObQkm7OldwyQESRCp YGpcgscRZBStTEVK8d6NNNL4slM2D9allxRBDgRVm4YkB6k/MtlALBQIqYVg0phYW8LGokQ09 U2hcrGfyguO/syxCjnetY6L5mXE7cg1ied95T7Ri8uD1Z5TegMbuUuJsoy1TGYZIaTVMvPAB1 jfVbGle038Vi7z0s1HirOVdYtrh5L+a3OcYi1+EvgQdQh5lf9KysJ4UdBU74lLx5zZt6Q36oH Koo4vqbNTn9iFuF5oEQKS0sVkMHiFxK/9z+xSn83G0gQJr7Bs2Hw/42qTn5baakmJEjUNuaHD 6BHFFaiMk7Y9GOc9xhXhaE+COhJQYQ7GSkZgH1Z642hX+qKUHRjgSOHGC8NNkPEqdd9Dyz4xw kqBpnNFvkDWnHfRVPDLrBKJYDRJFqPezz9tcup/lDG1dS/N4F8= 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: Sat, 16 Sep 2017 16:15:44 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/si4713/radio-platform-si4713.c | 1 - drivers/media/radio/si4713/si4713.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/media/radio/si4713/radio-platform-si4713.c b/drivers/media/radio/si4713/radio-platform-si4713.c index 27339ec495f6..4b7943e385a0 100644 --- a/drivers/media/radio/si4713/radio-platform-si4713.c +++ b/drivers/media/radio/si4713/radio-platform-si4713.c @@ -162,5 +162,4 @@ static int radio_si4713_pdriver_probe(struct platform_device *pdev) if (!rsdev) { - dev_err(&pdev->dev, "Failed to alloc video device.\n"); rval = -ENOMEM; goto exit; } diff --git a/drivers/media/radio/si4713/si4713.c b/drivers/media/radio/si4713/si4713.c index f4a53f1e856e..46b1fe36f713 100644 --- a/drivers/media/radio/si4713/si4713.c +++ b/drivers/media/radio/si4713/si4713.c @@ -1451,5 +1451,4 @@ static int si4713_probe(struct i2c_client *client, if (!sdev) { - dev_err(&client->dev, "Failed to alloc video device.\n"); rval = -ENOMEM; goto exit; }