Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbeAPUEL (ORCPT + 1 other); Tue, 16 Jan 2018 15:04:11 -0500 Received: from mout.web.de ([212.227.17.11]:62638 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbeAPUEJ (ORCPT ); Tue, 16 Jan 2018 15:04:09 -0500 To: kernel-janitors@vger.kernel.org, Andrew Morton , Jassi Brar Cc: LKML From: SF Markus Elfring Subject: [PATCH] mailbox/pcc: Delete an error message for a failed memory allocation in acpi_pcc_probe() Message-ID: <60382a41-83d9-b7a6-e904-e2c869012414@users.sourceforge.net> Date: Tue, 16 Jan 2018 21:04:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:x9fID9JDATjaYb8p2kIZDS4QxQfR0441UDgJ/Pv5NxVORYeYPkE XnrsH8mcpSxsJDlhXeCsoRZlgOfngwSoCThR5YOcSLgHaln1fLEsblML3yrcHjBm3qSTIaL 5wWzW01NLTBKte6dfByjN80KmJd9qriyS1MZc3MZYSQpCVgiAsSTRuMsotxhUcAkm9l38PG 5lDGKLTtzT/806Q8gJHKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:YI5p6j+Rd5M=:AJqpIylQgi8lKdKF9y2RBY j02JsBA7gpcpdLPdnAKI48Ca5gsbvWuQJCqVRNug4SWQrPc++UCquymYjzxPdFx/icDL81jRQ lr2t01vvwTiC84C77fukrFkA2Siu2p7pOyndXNUHNNxV0pSZgHB+sjT2JIPU/6O+XX7UWz1Op WfPMVP0dgJzjupLUAuT8FgtCaBkc9nwzRuyhaVZz19Nv2VoujpQVU37t7i454bzgxt2yKTiqK E2ZtSErz4j3t0YxwA3COJP/n5BN3vUpbfG3cLH5hB3I/V/2hZKA3H6mh0QFsWLacpFfX3QEYM lPbuJa/Y5uMQmFpEpofRbpdmlsuSP30Wa/dQAMOd/uaJwAkWCDPlmYZCWR9COKc/T3FypnWut vaKpzClYZqdNWYuowEMPwS3/sDxEEnRgTu/cu37y62vWksSnjIVv0F7SHNh/EQHAg5PBAdqbQ VB+akKdsTaw+pkProlPTncyhTxURNEl8IzVeJdp1JESkgCfv9zYUmPqTMW4jz1lCCl/n2ix+m VThQ69uS/1wiQFCTuDdxR6iyS7z3h+OFMA7k+em7lt+rMznpvt9ARk9TX5kAjd+UJuX3W41iZ uZddyPJkDr3FgV/rcitQf6N7P8p5+iCZxXJb3pE2VzDsza5xVwaMS7rNWb6xIz+LYvb1T3mzr uri2JvKRyTITB5/0X3yj1QCKXcxEcNuHGobQiUS+8kmo6qqF34JgU/0WbzLp8KTx/pAS31eBx 2+9X/yHWGz9aG04B+tOhz6Yhbq2Wyb8nbg1V4BffypyGlwbtXpQQiuEBqFhasHmZnuo/GGMGA Av2rH3FKFQGDbC97oDOqEOrhIcQ78DqQS1u/OvXGQpJmseTX6c= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 16 Jan 2018 20:55:22 +0100 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/mailbox/pcc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 3ef7f036ceea..78097ae183ec 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -478,10 +478,8 @@ static int __init acpi_pcc_probe(void) pcc_mbox_channels = kzalloc(sizeof(struct mbox_chan) * sum, GFP_KERNEL); - if (!pcc_mbox_channels) { - pr_err("Could not allocate space for PCC mbox channels\n"); + if (!pcc_mbox_channels) return -ENOMEM; - } pcc_doorbell_vaddr = kcalloc(sum, sizeof(void *), GFP_KERNEL); if (!pcc_doorbell_vaddr) { -- 2.15.1