From patchwork Sat Sep 16 12:19:49 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: 9954219 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 61483601C0 for ; Sat, 16 Sep 2017 12:20:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 511FC29132 for ; Sat, 16 Sep 2017 12:20:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45CC429142; Sat, 16 Sep 2017 12:20:41 +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 EAA1029132 for ; Sat, 16 Sep 2017 12:20:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751347AbdIPMUO (ORCPT ); Sat, 16 Sep 2017 08:20:14 -0400 Received: from mout.web.de ([212.227.15.3]:53448 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbdIPMUM (ORCPT ); Sat, 16 Sep 2017 08:20:12 -0400 Received: from [192.168.1.2] ([78.48.47.134]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MMWA2-1dm1sG08Ss-008Mx7; Sat, 16 Sep 2017 14:19:50 +0200 Subject: [PATCH 1/3] [media] WL1273: Delete an error message for a failed memory allocation in wl1273_fm_radio_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Bhumika Goyal , "Gustavo A. R. Silva" , Hans Verkuil , Mauro Carvalho Chehab , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <3cc3d260-6aed-3e39-24d1-9fcdf4a49685@users.sourceforge.net> Date: Sat, 16 Sep 2017 14:19:49 +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:EmEtSTyYb3UUO4ChpkywsHvzQQ2gPt1UWwTBqngdyqIhlb/V26f oPsYzffU471n8Fx/9Mv2YpjLHbw1UlD8X511MuFtHizVAOO3HUklTCbmbIVrS9tg7SLBnwt OKvpQ+PGAwsG4JrwewwXof/Igl7d6WH8+20qZG8LvHtexOiz3mPnlT97BIFTGRbJMwEuU9X XJ3NAsR2cp6YQb0xe0cmw== X-UI-Out-Filterresults: notjunk:1; V01:K0:r/F8+zC04uE=:lueloTcf4uhv04e7YK+Snj 8MZARW3RdKLbAY0abs8F9yDruurdR3vxzpXKZjWFE5xHYk1cdynzA3jVWsXko6zioH4DNMqLL JnEvoQTfVi/uge4iqf0ngdadCjCOM6lKzg9SYlTFR08Xd1opldvkSA3wjUd1yTFiummzqqXJd OwNieQJl6d7REepkwWwBFIQE1p16+A2Wz50d3JcqBOsVHfUxe7CRNHs35HXin9BBlW8t8264W JU/I4iMLl7TOivj0oFEPbRiMYaDootACe+rdDEITyITF60os4AtmJhMM7SNRLNPKX8+ZD8b86 Y40Ecy8R1uYSHqIxgdwHQoUspZmRbYJUV9azpfjXWwwc+wf6NJkIA17+7ElbB/uN3padi+uzK rcMQTpYCFGtlPz+r6Nu43YBN6jwQLu5elHVk2N3AmzjIfHRu4Ii05ZYfUZIjWbXm0ObbCoOt8 scAKqfWrkOse7hdchidGdgdqXlKdbKr0bCY6mO/WVY2fQaIglxq1BhjGKzdAAZbgZUKFuTyk4 vXpEhASgZPy0Kf2Q6g5anfB87HnOjgDyAQwCQlNHRPAjlEmfg+6Lcmrrj94ojbT2lvupMBn0n 1f//iwIuiyrY7iU9bfNqHIV0FdH7RtMYRWvpRY11y4x670r4X6BEyrEYb3PMEdeI/r0spnIqW XTS/kf7HVZhaCN/3ax6piY5zb5+xf/srVoNaWaMqB4vgTdsgjWA3eNMUHMJB8ncz9VRPO/du1 HjU0x1BWl4v7cFoW8z9PISJuWU3KEyNXUKOldcYWsCVStT1byy3FO8iybpsOyoCOVlmNw7DlT aecfXVgF+zewXt+FkP/eLCR9rnn8JtPmCXih833AH3eTUt7MtE= 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 13:28:38 +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/radio-wl1273.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c index 903fcd5e99c0..020a792173f6 100644 --- a/drivers/media/radio/radio-wl1273.c +++ b/drivers/media/radio/radio-wl1273.c @@ -2034,5 +2034,4 @@ static int wl1273_fm_radio_probe(struct platform_device *pdev) if (!radio->buffer) { - pr_err("Cannot allocate memory for RDS buffer.\n"); r = -ENOMEM; goto pdata_err; }