From patchwork Sun Sep 17 06:57:45 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: 9954615 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 5F7626028A for ; Sun, 17 Sep 2017 06:58:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51DD228BCC for ; Sun, 17 Sep 2017 06:58:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 467A028BDC; Sun, 17 Sep 2017 06:58:23 +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 11D6028BCC for ; Sun, 17 Sep 2017 06:58:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751300AbdIQG6J (ORCPT ); Sun, 17 Sep 2017 02:58:09 -0400 Received: from mout.web.de ([212.227.17.12]:52943 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdIQG6I (ORCPT ); Sun, 17 Sep 2017 02:58:08 -0400 Received: from [192.168.1.2] ([77.181.201.34]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lzb94-1dOLsE1tsA-014l7u; Sun, 17 Sep 2017 08:57:56 +0200 Subject: [PATCH 1/2] [media] si2157: Delete an error message for a failed memory allocation in si2157_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Antti Palosaari , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <87f4a386-ac11-87f5-2d22-7bfc0593de34@users.sourceforge.net> Message-ID: Date: Sun, 17 Sep 2017 08:57:45 +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: <87f4a386-ac11-87f5-2d22-7bfc0593de34@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:wtmnNSyb4yCI8xUzxMH95eg4cL7GJFVTaW3bl4YemtFwGX/SsWb Q4/c351YIFPymvkR9YOlL/z/jl9IuuOX7B8dzqq287URLs/OKylT0EnclvW625lJRF3hH5P 0agQt4McY10GhcKvZYBAJWlUXEEpOn4ZURflyNzASO9rs6h6dOFtHksrKEcVAd38F1J5Ig6 kzGfJn5PIC96+iAqOmFKg== X-UI-Out-Filterresults: notjunk:1; V01:K0:CfEOXQe/P0s=:JvXAuiVfMyFAZ4VhMC9o57 hwxqVISvUt/Ico8IQpapS8nZd27ugNMfKOZQOA6sP90H36EV54NByQjdkrorfjLVKo7alEslj ouI0WUn5yGFs5mC3f9PF0kbhBU/Y/hHJrJ5TKbba0A0cBTELSEdJQIuB0MxZXDtSD7MbbMPG3 dOYusnpt/90+HJU0ZNj3LB84rXoYj01+nThYDPTgrNcdqxTuOziGE0PeWLbAPuU483O5dW063 s/cD88etxtLir/7DmqUgR4p+f0/JNcX7F/kFFeEpnXGSMGmqDZSVYopUflA/5ilmZytvLguC4 s0EiTu8F2nnguEOpc7/XfW6jPRY/1MzazpZ+cmofVcQBiGzyDCAA2e4/02+XaO/iXoGXcdZhn Vi+k3wVhfPXM1oZqhCgp3yf+x4iOi31wY2GHk1VRxLlHZQ8r1OdJkBffp9CGp9Gbevz6aLO17 DHY+pmM6NL+jQsYysSaLHv/KmSJwiTh3vt8tpiA1LNNh13mgmpK3HQL9BYbhaopyfTMJD1PVV oOGKzq06s81/4thOZR1EjZV70UsDL+VbvehBNoHQInn1kjaEbBm0pUShNCApnMOpfYcrPixoK I/B/fRYmzbfWAJdRrwtBhzVt3n3qWKJUANp7B42OWls2cBnsD7Uy1GQVYciKlsX9YOM08dU3H caY3PKEB55TIk4rjFlp+94mn6VJeUuFdKYmWh6DHlKxoPj9jixaxL5oyHolJ48U2rzV7Lbnhg XzUz1+P5kT0E2Ca8ltfLuHSXUAk7V34kkN1qqA4DaVc7ZUz56J7wJ7BDEEqiwqe+Sss/2eiX5 5VNbtd0E2n3g59+sVZQ5ESX91f6Hy+kG1K4N4fwfJlIVDMRmMg= 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, 17 Sep 2017 08:20:04 +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/tuners/si2157.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index e35b1faf0ddc..aefa85718496 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c @@ -439,6 +439,5 @@ static int si2157_probe(struct i2c_client *client, if (!dev) { ret = -ENOMEM; - dev_err(&client->dev, "kzalloc() failed\n"); goto err; }