From patchwork Sat Sep 2 20:41:08 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: 9935809 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 5A83360390 for ; Sat, 2 Sep 2017 20:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D00028680 for ; Sat, 2 Sep 2017 20:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D4B82868D; Sat, 2 Sep 2017 20:42:21 +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 E037C28680 for ; Sat, 2 Sep 2017 20:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752805AbdIBUlO (ORCPT ); Sat, 2 Sep 2017 16:41:14 -0400 Received: from mout.web.de ([217.72.192.78]:57178 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbdIBUlN (ORCPT ); Sat, 2 Sep 2017 16:41:13 -0400 Received: from [192.168.1.2] ([78.48.84.48]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LtnzN-1dOuGn44GL-011CVb; Sat, 02 Sep 2017 22:41:09 +0200 Subject: [PATCH 1/7] [media] Hopper: Delete an error message for a failed memory allocation in hopper_pci_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> Message-ID: Date: Sat, 2 Sep 2017 22:41:08 +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: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:Cq2GoxmWghoNgeRj2ZFgfrkMhA3SeEKGPs6zE9hhdkze3yA4XuL 03neROzwoB53sc3CYRB1OPZDckJgIoRMSvKJzoFzfv4DbRZ9wLPBNZzM9Xj5gjthommSnlN zL/7BXbLrDVvomrbvlZaEKZteKifknIJ5TdRUqOZD+bw79AI4IlpuWrjphJNsNq0ZAY/V54 OmyZ+D+4olgwKDdz9oAAA== X-UI-Out-Filterresults: notjunk:1; V01:K0:vmpQQpAtHoA=:SIHga0PHPnrvgojsV8w6v0 JMg86aTpoLdcK6kC421nnbnuKXQyER/8QZ9OhkoSzofxVS/t9Rv+n1FepUnM0wQ/q8m5rIIuZ QHiAasxXCGf5eU4D7o7C+bSuQe6M53uXUo+MVEmZjETjUgFwFrVdCKKUDygPbuXIyvINGhB2b ybwL6XvucsEIFQqQMcp5f5PmCAvwFItdCKOrjGjqxBiDvgKnC4uIypUA8hN0+/6YvtqkeIe2V vuxFt2bTgA15yxRwCJxsL6YxgocDuXxY5aJ/kOXxpTEQzsE40+TZk5aUPrpQSNHCHrJq2h+Lg 1uNa+YIGcMmAyqDmi5Cx0bgi5Tr+PccTvAP89bYzlpm5RNd9u0xrAB+AhVeObVA40jR3C9Zsu RHJGW+1xWEu+43FOLez4ObqrxrHhgcmO9Z3NkAX1lbtO2lsyimJySYyhkImft/zVWk8WTxPn0 S1QsO5Nh/Md7owGfJOAqxJACPSUKYvM9aXqPkgcrGK0IsDqTyhKJLoCU2rM4r8SRvYPOvW59Y IFXvnj3004gwOE/Gyg2CLyGC9j344q2EzAJU8dLLicukmRjUIcC7H3h93KLYzUe6aublpAI4C iRdBROQbUcB9A6JglAni6fhQu/Ho1+b3/Fm8qtpmb9++r6WNdTzLcwHv9n3O9hIjEnZgV/Tme QCihi02ameOM1uhSC0bbtUJB8Woq2Czs4ByYTo50GDzGA4KnlA44lQX0PeS8Tyxr/2g8mUJVC ZB5hqNvEtoFN2x7OdnOXqu8gzHGoByGsJ+M2R1Q/rjme+mOQ1DbtDOj2p3FOAVeaxXhuEkgf1 jK9eZrwHWNDSKKMkLzOYLAw6sygpaU8BEvEH0mSCjINTL1ATgY= 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, 2 Sep 2017 21:19: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/pci/mantis/hopper_cards.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/pci/mantis/hopper_cards.c b/drivers/media/pci/mantis/hopper_cards.c index 68b5800030b7..cc1bb04d8cb4 100644 --- a/drivers/media/pci/mantis/hopper_cards.c +++ b/drivers/media/pci/mantis/hopper_cards.c @@ -168,4 +168,3 @@ static int hopper_pci_probe(struct pci_dev *pdev, - printk(KERN_ERR "%s ERROR: Out of memory\n", __func__); err = -ENOMEM; goto fail0; }