From patchwork Mon Oct 2 17:58:02 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: 9981065 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 869E6602A0 for ; Mon, 2 Oct 2017 17:58:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73D4A20243 for ; Mon, 2 Oct 2017 17:58:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6683428789; Mon, 2 Oct 2017 17:58:35 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F002D20243 for ; Mon, 2 Oct 2017 17:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c2Hnzdul7MIa/siaOvEeJz48Ak4kBse+GIj8CuP9j7M=; b=O58szggIB/XJ+F HVVe8vLArOHGWZ6jYKtPGCGbH0ZQXFTLV5DozVy4HIrvtdzMmCGaHR77J9RRGBvFm4IO9O+lcNd4Z e/3L4vom8w1ikyjkSpomq53oszPkyub/zVGEng0EiTufOzrL5v9BOn8T/kvgvdgzds8Mf6pgMIAF3 P/9zkFlZ3h/K7HoD751ABQ6yhnWCBM0RRKicvLS7WucDlOAimMeoDnOS11tQbowlmmA7HyO8t3Lra sBq1FLdfPRI3etTqPsYkWH/UWS5vw6qSeZ9Prl4ninhasOiDT9nFSwFybIEPEg/SkSFH4HXg6o76P 0D6Mx6ZIp6Dl6/4i3jsQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dz4z9-0003so-5k; Mon, 02 Oct 2017 17:58:31 +0000 Received: from mout.web.de ([217.72.192.78]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dz4z5-0003pI-JR for linux-arm-kernel@lists.infradead.org; Mon, 02 Oct 2017 17:58:29 +0000 Received: from [192.168.1.3] ([77.182.170.85]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MDxCN-1e6REI2rpX-00HQHq; Mon, 02 Oct 2017 19:58:06 +0200 Subject: [PATCH 1/6] ARM: s3c24xx: Delete an error message for a failed memory allocation in s3c2410_iotiming_get() From: SF Markus Elfring To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , Kukjin Kim , Russell King References: Message-ID: <1207a56d-3fa6-9c80-d9fe-4b56b11ff0a7@users.sourceforge.net> Date: Mon, 2 Oct 2017 19:58:02 +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:bEHPeUvmZQqNbrjxrzFWeze6zu6xnKXdLnIY5pxK+3d4xQVmIHx JE+bYtAKVvs1fgYl+1dGYPJe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ichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171002_105828_082232_AFC56F5A X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 2 Oct 2017 19:14:20 +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 --- arch/arm/mach-s3c24xx/iotiming-s3c2410.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c index b7970f1fa3d5..f587c78fba33 100644 --- a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c +++ b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c @@ -454,10 +454,8 @@ int s3c2410_iotiming_get(struct s3c_cpufreq_config *cfg, __func__, bank, bankcon); bt = kzalloc(sizeof(struct s3c2410_iobank_timing), GFP_KERNEL); - if (!bt) { - printk(KERN_ERR "%s: no memory for bank\n", __func__); + if (!bt) return -ENOMEM; - } /* find out in nWait is enabled for bank. */