From patchwork Fri Sep 1 19:42:38 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: 9935209 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 AB8156038C for ; Fri, 1 Sep 2017 19:43:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BD8227FAE for ; Fri, 1 Sep 2017 19:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90DD42818A; Fri, 1 Sep 2017 19:43:08 +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 378E827FAE for ; Fri, 1 Sep 2017 19:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752459AbdIATmx (ORCPT ); Fri, 1 Sep 2017 15:42:53 -0400 Received: from mout.web.de ([212.227.15.4]:64011 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752302AbdIATmv (ORCPT ); Fri, 1 Sep 2017 15:42:51 -0400 Received: from [192.168.1.2] ([77.182.57.191]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lbrk4-1d6nqF3fjo-00jKjO; Fri, 01 Sep 2017 21:42:40 +0200 Subject: [PATCH 1/4] [media] sp2: Delete an error message for a failed memory allocation in sp2_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Olli Salonen Cc: LKML , kernel-janitors@vger.kernel.org References: <6142ca34-fcda-f2b6-bc35-dbbde0d34378@users.sourceforge.net> Message-ID: <22129d4f-f26c-c63b-6704-0e5f5d9f854e@users.sourceforge.net> Date: Fri, 1 Sep 2017 21:42:38 +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: <6142ca34-fcda-f2b6-bc35-dbbde0d34378@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:B8f4s4jvuQuhpazh0k50VA+Ulthlg99guUziLUWesZFDu+VLQh8 pxDNuBPUWttEd+kNOD1aKeSFTcLNtwIlpOMDL7CNJmRUHs+Cd4LzmhNes+dnQojHfjEQZca z30CcxdavMO6UfHlo5TkoOGaDNS/0px7J7tK3PSMztEut3IZNUxrjUkLWchMjX0opg49sSq WHNyah4QXlohnD7kd+42w== X-UI-Out-Filterresults: notjunk:1; V01:K0:iL0sLvxK6vg=:jk8nxf1ji/7zZlF9O/vndP DqGFmE7FublUURJF5CYEEI3ugva9t0AzZVTrktouxCab2JlkkVQmddzvYd9pnuPGTOT2yE/O2 OFQsdrognU629KzAzuRsGTRt4d9Rkmj8L++IpH21n5cHflg44XP49DKyZHOL97GjFsCi7ixuU fnW5GD08u3vVZqxuupAmhP3NeT63MKyO1Dm6A+v7yRbaTDSKA6rs7xbtw1eaGHU9W0ErwjfCa 1oJ4C78jKWEDHpumTCQEjFqdUqzmiakkTMaVx2zqKoXLatNWUQbJ/yV+JjTKUiS1lYfYYIJsJ sQrhu0mZNZlqH/BXruJAwnTyeGuQeCtyp1jiv5pHp6ETz9Vk7MtlYFkuBNrIbg5GugmGE9vqf 5THlqFD1ObuZD1m+iwABvQzCQrvnGL1JOoZDylaR20aA6y0dwsZiog8uO5i6IeEHhDm1JMD48 3+YDqMACKNEZ78ppIaLinZYjQmPlZPCUMfN5wf1scoV7hJQU0EKtgvT8gCOAaabEZVA/uGCov OQSItsmaRtAbyoZWUT5rCsx0ZTU84qWH4KfrdpwWs3HkqcVTEW6GXWi4YWn88a9RCouq9CdUw DXpmjdD2o4WEmLOfh5tknk853nZksnzgqnN1btGdt7P4ZkG1Mb1GztJpXQaVMJeZQPTmSZRYw NgQ2CQiGGy9Rpfg/tteB/r3BjaStDkqqRbND7kHJajUHNoi5QbfWsSlZMNpZsP6HgwLm68YIW O2nKKLgJiAmYk+h8frsFSG6X7hfYkMTLf9O819peAbSw0MHZS30DO1lKPxoJv67t1/yras4rK /n1IFL7xzL+y/7895l+Iz+fi0FWVq4iqYSpPAQERObabZvDruo= 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: Fri, 1 Sep 2017 20:44:05 +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/dvb-frontends/sp2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/dvb-frontends/sp2.c b/drivers/media/dvb-frontends/sp2.c index 43d47dfcc7b8..d3b4f8822096 100644 --- a/drivers/media/dvb-frontends/sp2.c +++ b/drivers/media/dvb-frontends/sp2.c @@ -385,6 +385,5 @@ static int sp2_probe(struct i2c_client *client, if (!s) { ret = -ENOMEM; - dev_err(&client->dev, "kzalloc() failed\n"); goto err; }