From patchwork Sat Sep 16 16:18:19 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: 9954389 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 3ED64601C0 for ; Sat, 16 Sep 2017 16:18:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D4E828AFD for ; Sat, 16 Sep 2017 16:18:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EE3228B42; Sat, 16 Sep 2017 16:18:36 +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 CA84228AFD for ; Sat, 16 Sep 2017 16:18:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751303AbdIPQSe (ORCPT ); Sat, 16 Sep 2017 12:18:34 -0400 Received: from mout.web.de ([212.227.15.14]:52470 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751231AbdIPQSd (ORCPT ); Sat, 16 Sep 2017 12:18:33 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lgpcs-1d6UOJ3Jpe-00oGBB; Sat, 16 Sep 2017 18:18:22 +0200 Subject: [PATCH 1/2] [media] fc0012: Delete an error message for a failed memory allocation in fc0012_attach() From: SF Markus Elfring To: linux-media@vger.kernel.org, Colin Ian King , Hans Verkuil , Mauro Carvalho Chehab , Max Kellermann , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: <8f64b84d-cca0-d618-eb62-ec12f42b8c06@users.sourceforge.net> Message-ID: <19ac45f6-f11b-6ca3-eb9a-39999bf6e21a@users.sourceforge.net> Date: Sat, 16 Sep 2017 18:18:19 +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: <8f64b84d-cca0-d618-eb62-ec12f42b8c06@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:6QlznDOnchFqvkjcUgNRK57ngBBmSYeH6pfbDPBW+5J52OTIf8e vF6fR4+KBJegGh9WMl0vYeTernCTEbRz+kfVkRF7dXTY/wXDRAh+Bg9ZuuCTC+3kniwXw8J 3OByDhToUCMNS5dI33AvWeeS785EuO7yWX0v+2/k218Z7aK2/CQm65LjdMCnyfR5d2qUnDc 2Ijevg3JbLYBCFFlrfP0w== X-UI-Out-Filterresults: notjunk:1; V01:K0:3TNaoSpsYqI=:GfJJcwKKnWeK73jkiSSGRA dc6sKV2Rp+zpHgnI/kEXglH+2ynoJLQngmzMb0RsIJWnveQ9EvdaTOPhfPPw7ayDOiHdiD0j9 /tMSBlFX4Zl1irD8Wmrfw9miINEsh+85mviigWHU+5X9qKN3Gf51Bs33YfpXul+6R1CVBxYEC vnBAoSvkIK4dRBG4BDggGOMp5OK8uJUbB/jcRaTEdTGtvvW56vGHG2nGXeXgtVZYJFhW+N4ki WUeJfZvnoByQTlGl8XoFAtMn/qtSHIRaiII0QtzVpOXrhHMWfdVkkbAkFUmpr2EVxMIO9TSs9 7ES4PH3I7GbwbhTJDJW+zck9gJWb67SQvDGib498smfmkqP4s4i9sHMGDj6TJobX82oeiUZot x1btPvPE3/SII2SjbyT0GnCeDLSyxLmCKFtwEX2x/WuUxO9/TmT+kRPktOCccOuYNPnTnjPKZ E2BpP9SaaM1nvdN1CgJhucAO828UoyNIZkkHAHQ7CWO2VzSHIJ534o+S+f+Ycdy3IoJcXE+SN l6swRZvP3VehPRg2Kjm31UzKlLI5Wsm3DL62kGI9uf6czgSfMrqHnqYTtXqd5k1fm3lIxSi7o fACtNwHWtGlK+nOWUyGE0sC88rDbm+ww+RgevZi9DNtzyoiSaLQhjxkECiHqL08PFLm8Ylukd b6FIUJ4iVLqTFbiv6S8r3wdHoPJCqL6AYBBb3+fRGmoUOfiq86b0ogLeeokgY5W+HrY6nW2VO 8S4LVQAq/XbeO5TO7nNoT+XkaWRrahp1Wd57OQ0JD7UOqjubMh7V9h/M7OYYEhDdbKogiRUq8 YuJ27UoAKQnms9utyr43i8h5ad3x8RVEzdeErl64kiw6HaL1cs= 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 17:47:52 +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/fc0012.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/tuners/fc0012.c b/drivers/media/tuners/fc0012.c index 625ac6f51c39..7126dd1d5151 100644 --- a/drivers/media/tuners/fc0012.c +++ b/drivers/media/tuners/fc0012.c @@ -449,6 +449,5 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe, if (!priv) { ret = -ENOMEM; - dev_err(&i2c->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME); goto err; }