From patchwork Sat Sep 16 10:51:29 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: 9954187 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 0AA51601C0 for ; Sat, 16 Sep 2017 10:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E259928401 for ; Sat, 16 Sep 2017 10:52:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5C7528591; Sat, 16 Sep 2017 10:52:10 +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 7BFE728401 for ; Sat, 16 Sep 2017 10:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751303AbdIPKvh (ORCPT ); Sat, 16 Sep 2017 06:51:37 -0400 Received: from mout.web.de ([212.227.15.4]:57682 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdIPKvg (ORCPT ); Sat, 16 Sep 2017 06:51:36 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LzEO1-1dOMFv173Z-014Rbv; Sat, 16 Sep 2017 12:51:30 +0200 Subject: [PATCH 1/3] [media] mr800: Delete two error messages for a failed memory allocation in usb_amradio_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Alexey Klimov , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <7efe75db-dbb4-0fe7-509d-908b81072ca1@users.sourceforge.net> Message-ID: Date: Sat, 16 Sep 2017 12:51:29 +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: <7efe75db-dbb4-0fe7-509d-908b81072ca1@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:altLvVcZupI77aLQKyDrFs8dSxCN0bLRDCNx7QMlYuqfeAi8FFh GpCKoMKJB7cBvQ9HpIQo6Cg8ljjakQ82ejenj4j07406EPe8T4pcOjy/2J2diLSfh3T8dLo YE/t70ce2/mece33m9p397h913H3zoXlFf2M8vzaGPlQui+PsyYTUeOvdlduzaRiMbuITxZ rwj08ZClSmw0QuoTvLQaw== X-UI-Out-Filterresults: notjunk:1; V01:K0:EWwVIo8XqAk=:VbQq89JAiirh2O/zpmGHLJ kWk9CkRKHI4aSsJqjLNqk2szhfHi6JfqL2idNXoIELc6vTlE3w/8Ucc31XGaXilz/2osiZeKh a7dpRxXrDzeFzrA5inGLXzdYmFCcouwVnvjGg6XBEi4CnqbkaNRgZu7pRlzZYLkqMThrEudAe jDXizHqf6lOMibKV0nodMx0wMuH9d7mtPwhf61VZ0pBCRtAPRsDsRsZwci+8U3i8lunIzSI+B i0hIXVvw/8c/RdazQocB1WPrDdH3aBYHKfK8p33ft3FI/4hN0kw8Z0fAeNpgdTcRZ+91rEzVx wRwsNs+bBN6aayZK1JVMrOALIEGze+iZH8e3ZoPw/MlBpbZfQEvSvm+Qrc6NACfrSv//EoFVP vPT6yMdtCT/Q9r00lqdwvzKf5sNPeN9uUZKWyhNTdcZMF51tOMKEB7IREWJ49HwdCbMs64DXm PJoJZPUyjmrVRq0ERtWMU32YR1ZilggcDAEPuQJx7rDHXavpA3m4uc/RmlGC4qMJMbb4AZRd1 z8VcM7Dt9nc255gkskMgzMPhbhoO+cYAXwWFlq9ScgF+jKR/WQGOM1Vfnd58I4dqNfbRVI8py +unSmdAmJBBQz5voWfswk9i9NGWTox7IgKTMCxJ8XrUsldljs+5yKlVXRg2LJeBklz5e0iQXj uYe/ZMvaxCdMYxn+KiVHGphqMI5XdfPgh3t53UgMFhhVfBtsC4Z/S2o1jWjXJ7XOBAhjXI1TD K/9gKY+F6bNgyminXT49rFcPf7Pg+oGeyc4uVWNwG1ULGBR1DORkl3czRrV8yCGwULUvGZXEp F7VwoZDrYfF2ZTouQwkJW6HwmuYA/g2kDw28yXeVO4nl5+NkeY= 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 11:23:53 +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/radio/radio-mr800.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index c9f59129af79..63a9b92ab495 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c @@ -518,5 +518,4 @@ static int usb_amradio_probe(struct usb_interface *intf, if (!radio) { - dev_err(&intf->dev, "kmalloc for amradio_device failed\n"); retval = -ENOMEM; goto err; } @@ -526,5 +525,4 @@ static int usb_amradio_probe(struct usb_interface *intf, if (!radio->buffer) { - dev_err(&intf->dev, "kmalloc for radio->buffer failed\n"); retval = -ENOMEM; goto err_nobuf; }