From patchwork Sat Sep 16 13:37:56 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: 9954313 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 0D6DE60352 for ; Sat, 16 Sep 2017 13:39:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F124F288BC for ; Sat, 16 Sep 2017 13:39:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E343128B25; Sat, 16 Sep 2017 13:39:15 +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 9C89528B13 for ; Sat, 16 Sep 2017 13:39:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbdIPNiE (ORCPT ); Sat, 16 Sep 2017 09:38:04 -0400 Received: from mout.web.de ([212.227.15.4]:49995 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbdIPNiD (ORCPT ); Sat, 16 Sep 2017 09:38:03 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MBkWd-1djYm20BOh-00Ank8; Sat, 16 Sep 2017 15:37:57 +0200 Subject: [PATCH 1/3] [media] si470x: Delete an error message for a failed memory allocation in si470x_usb_driver_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <2cc6c33d-4d3f-c097-e0ef-faf828d18c28@users.sourceforge.net> Date: Sat, 16 Sep 2017 15:37:56 +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: Content-Language: en-GB X-Provags-ID: V03:K0:59Pl3EyO3t2WWiFCy49ieZyKRsF3VosuTP2BEzrwcxwuj25R1BG gA51Di0g+4/kXfYwCydhnx9IfcI0QAU4ELPvfbNPEmSYX/ZZtr1UtNckG33GxjEpNfiZeNZ rGq+k53qICimcmo5djoSsiAvR/ibuG+c3ceABx5iv0hFBVLfQBpypmHg/3ye9c+RtmtmIsN QYG8s20hBWYasWnsC1Rrw== X-UI-Out-Filterresults: notjunk:1; V01:K0:9ggQcLJi68Y=:hIrjH2iPGsJ8TBskZpUhPQ uXek5qQ5ig/DYEcxK017FL1K+QuScJuJL8RU+wKsZp/MT8JZKSTPC8XudKOEOX1hYOghjLSiv J1lGAcRyZDZaKXh8aisldmNf8Th1h/Ct8jAhOXaV0ODt+vnatG1+jTE2h5a8kRmIILiPTquzP CMHyPYwG7WWFD+nsTI+siEjRgVVx/AkqusN1X9NmbhPwYRKIxJ2GqwZHECdYPsOSLe+7zsLIp GtH8i7pdFED5LCL3vV4gJkNqJzvoSCXjFIRhMhj70JPQmkXHtwKIzFvfJ9L3vNBWX7pOclhQh lPE7LIxCR4SLJCQDyFR8bz2NBG6asczhy58YajAK/0ciOqkfqqD+1xRqlnSHeYdBLHznPcoVe Jc147IXIDhzy2VKvZJvLbi8nB1i0uFn2opqaJUVPTor8ERu8KIOtgKfp6ONwOizcEJKre9Na3 KWQRP1FJPVgKyBbbZgS3CXQMDpMYr1Y9M4bMUo1RcJEp9qN47p78ZhhKWJqDrMdBl7P/PRyPQ tyDBiY7J//yqB+BFaxM8+G56ygKGhLlis7GaKlXu4TL7bgZosmZ8+7+df/MGzOCLbJYfE4Ly3 qeGgtmExCcOU6MlKp97KvKdNZ7PTC3Kdv73RiCDawwtuAgLRScwn4gTPlIeVeGIZEmQqWVTga R8egdBMbse7vQDVqZTBqZqItgPaLjlxB3EGWCAshlWO02XCcGty5v1Ry/E4i4pRcxasGoIKde UNvGVUNi+2kM/EHMT/KQr6NK3YeyUOFgCy2HBhDnrDmY6W1uDvjkFjqV5ssvPwmVNbQ+SUWSC sfLjxp5ZPfjlAeE8VDFwZrPbSr7102COv5+INUkygzIPhy46vY= 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 14:53:49 +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/radio/si470x/radio-si470x-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index c311f9951d80..af295530b20f 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c @@ -618,5 +618,4 @@ static int si470x_usb_driver_probe(struct usb_interface *intf, if (!radio->int_in_buffer) { - dev_info(&intf->dev, "could not allocate int_in_buffer"); retval = -ENOMEM; goto err_usbbuf; }