From patchwork Mon Sep 18 08:13: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: 9955681 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 6696F60568 for ; Mon, 18 Sep 2017 08:14:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5704B28BC9 for ; Mon, 18 Sep 2017 08:14:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B46428BD7; Mon, 18 Sep 2017 08:14: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=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 BC90128BCC for ; Mon, 18 Sep 2017 08:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752208AbdIRINw (ORCPT ); Mon, 18 Sep 2017 04:13:52 -0400 Received: from mout.web.de ([212.227.17.12]:63884 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbdIRINu (ORCPT ); Mon, 18 Sep 2017 04:13:50 -0400 Received: from [192.168.1.2] ([78.48.130.71]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M2dbt-1daovm1cDF-00sLkI; Mon, 18 Sep 2017 10:13:39 +0200 Subject: [PATCH 1/2] [media] dvb_usb_core: Delete two error messages for a failed memory allocation in dvb_usbv2_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Antti Palosaari , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <38627457-f64f-7356-bf5e-fc41296a26e4@users.sourceforge.net> Message-ID: Date: Mon, 18 Sep 2017 10:13: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: <38627457-f64f-7356-bf5e-fc41296a26e4@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:omtlPJRAWhxlFpwwZ1WwnGLJhW6m7hBsws3nPBHddcTe0ZeBSGz YnBud1Ude1yUYDZoAyNt9yxVOJp4wF8eOZxeYzIFn5MT5vhReEWtQXmjccR9Fd0LasQ8RGt G+ux5220K+xgh2Rb71eF96Hp/wyv/EOozVVw2V3yACTIcbvXuzPEpyT0CyWfzPsOx/KyMnc bHG1lNww/YfFAA+MPc4hg== X-UI-Out-Filterresults: notjunk:1; V01:K0:puNbz9myotc=:MHfPehW9tpvDLPSNPZSXN4 ihcorbQlYN7iWJ6+7+KQkub4macwp5FXEmIPayeSSYuMk3lu4MVM2i2Qnku3iOPdwVAMxHqWS SIsxl4ja/wgReuywV2vaDUwkHfFvUWcRBxs5pf8GIW2gsTyxKSrZi0ua+6FOqRgrCFXdbMeDV aDgsv+VN8bnLsipCSNkHEBOIDgzUI+tuV/+1gEwvk7brmqzgBosDdWujfPxDP2yryb3StjGRR Pz4NFt7vyY5bGhMFn2/D4qUTJ1ZGouNm47lFWpAW4W18voGfxz4IokPj3AckS4ZO1FiNiKRWi DBXAF4N1HQQwcf6FXwrgkVyPXkJPhWkR9We/HXqiSqM/s73oJIN4X7L4AjD+IoOMDg3HMndBE vfNTCadABOZiV7MVK8CPRgFDobmjDetxXqPEBhU9WKevJ5J8hgfzLgepbV1DN+Ox81JwlJzqU 8h105CDXBSQPuez6l7sxq8O+7PMA2xvGakqRBgnT7YuOt2o82lQyotUACV6jDcvnsWIz1vbsi qtETBilHTnxVlFP+KJPfT/AE+MQcyjh92pR+bT0/VFiw0sxNbmzMCqYbvn2r+qxaq0zRw4mNX IfjcNk33hagYp3ROI+sqkF/jPK7ik9Eo0rGZTUqqBjNYiLv74kobyc9c9JDGzzdkyfFS1MxFG CvWujZG7PX0+K7Flv0Lajkd33jiMu9h2LL4mWHmrxcLOZMmaZoI6Nfv4+/25O1WXYVaG5urJE lShFgjsu5o61GFKecba3Ktxz1sQ3gv3Eku5DDzxMXB6v8pyNP2zfFfhRQ85UzCVgRxaZPa6Ce FEtXy38ouU81TeETpZpVksMQQjNZH5o32kQiHyJ4LDhyTMgipU= 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 09:25:19 +0200 Omit extra messages 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/dvb-usb-v2/dvb_usb_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c index 096bb75a24e5..d0fbf0b0b1cb 100644 --- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c @@ -923,5 +923,4 @@ int dvb_usbv2_probe(struct usb_interface *intf, if (!d) { - dev_err(&udev->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME); ret = -ENOMEM; goto err; } @@ -946,6 +945,4 @@ int dvb_usbv2_probe(struct usb_interface *intf, if (!d->priv) { - dev_err(&d->udev->dev, "%s: kzalloc() failed\n", - KBUILD_MODNAME); ret = -ENOMEM; goto err_free_all; }