From patchwork Wed Aug 30 07:19:18 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: 9928793 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 5E4086022E for ; Wed, 30 Aug 2017 07:19:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50CF6207A7 for ; Wed, 30 Aug 2017 07:19:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45BCB223B2; Wed, 30 Aug 2017 07:19:39 +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 EDA16207A7 for ; Wed, 30 Aug 2017 07:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbdH3HTZ (ORCPT ); Wed, 30 Aug 2017 03:19:25 -0400 Received: from mout.web.de ([212.227.17.11]:51984 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbdH3HTY (ORCPT ); Wed, 30 Aug 2017 03:19:24 -0400 Received: from [192.168.1.2] ([77.182.113.36]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MeSGJ-1e9jK40iZr-00QBjb; Wed, 30 Aug 2017 09:19:19 +0200 Subject: [PATCH 1/6] [media] cx24116: Delete an error message for a failed memory allocation in cx24116_writeregN() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Wed, 30 Aug 2017 09:19:18 +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:w4c4Ibw8Gvj9WUs1KYOv1U9nUxK+LA/kF6oqS3CgItYYsrKM7Z8 SliIN/TnxZ9B0f22wGGKZpk1vCpCL5Mu5GB1ZkbwUHJqggdPh0ovDth8OHuEAwChd/9BmKL Oze6TefAhplp+G1SiSNloY7u2/WBnv0hvb/4ZZkGU/WmLgS24s49CGUnIsUE3GOkzUotghh NBBAqTlbI6cHW3Q6lztcg== X-UI-Out-Filterresults: notjunk:1; V01:K0:9EPBf/wNMY8=:emRmvUgo/I8S49w27tPfmB vTEDsu/3lLp2gN7qjBzGupVN0iEctuIt/1QoyXev01sTuIdD+bwsbBSZgAvgl6U0cHJl8SUtu HyzdI027WlZH3ROZFqyjA6YCY4jCkGYoAi3VMRQSpRWIxi2uERCN4yxrja5NZd/jpMsss7g9B DeeP9bTF9US7A62M8isQN1Xmxj14kMnMhNkKz0XShaYup/rnlbFsgJ3McwScimkj2OW0NL4R1 hJwfz2vshQGnWCq6TPY2a81KSUGAzCkJIAH/oLjVSSm+Xb0mvd6kYrTVdejV9ni9KXMxTzsQF wlqAGCpHIHsCheRdoavojej4JWNvWCdfSencZtDUFm2f/mpxjqbdO9+RC5tn3r+R2df9maAWH basd83J6Db+rvKl++JXZ8Meu3rs8dTBkkepKBLxUv3ADVEMVq/qQ6asJ1bOI9J9uHqGfLEhw+ gqSJD7IFAx5++nRqDCTnGeqfG8URdzFreHZR6quqOPhpKK4Bgy5FaXxYeKzHvf0uiA5qXgCye 4Oxueq2bRqXD9vHzNWFLf+C81+UcNGRU9SnoRXH9RjNbyBqGpNrGHQssS4AFm+rnBgnP3Xvvf 9l+WQNsPLN+2ziAOh0gqYIq9Stm2Ih0EZofcuU7hETdbABxsOFHVCev2ty7U+7Fqw2kqIQYu7 83yzyB0vjw+6jeZ07vU9K9S0Hjqr9uIzjCQ+vPx3beMy+LGlbrxDhEYSuwqxYMrcPJMHXf+P8 T5b+XrXd5oKTai4s3n6fcWCZYeCclo9WSerN0X4wpc8G6ILLuOPTqVr8KUSi6PQcPpRuYJunZ QkSC9gpWM09/rZCKx6XUlxiDzh1/fHua49Qhynb8JNqOfnYHgc= 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: Tue, 29 Aug 2017 22:56:29 +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/dvb-frontends/cx24116.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/dvb-frontends/cx24116.c b/drivers/media/dvb-frontends/cx24116.c index e105532bfba8..96af4ffba0f9 100644 --- a/drivers/media/dvb-frontends/cx24116.c +++ b/drivers/media/dvb-frontends/cx24116.c @@ -227,7 +227,6 @@ static int cx24116_writeregN(struct cx24116_state *state, int reg, buf = kmalloc(len + 1, GFP_KERNEL); if (buf == NULL) { - printk("Unable to kmalloc\n"); ret = -ENOMEM; goto error; }