From patchwork Sat Jan 20 13:34:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10176345 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 524376056F for ; Sat, 20 Jan 2018 13:35:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A5711FF41 for ; Sat, 20 Jan 2018 13:35:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EE10204FD; Sat, 20 Jan 2018 13:35:40 +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=ham 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 D37291FF41 for ; Sat, 20 Jan 2018 13:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932182AbeATNfh (ORCPT ); Sat, 20 Jan 2018 08:35:37 -0500 Received: from mout.web.de ([217.72.192.78]:54758 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbeATNff (ORCPT ); Sat, 20 Jan 2018 08:35:35 -0500 Received: from [192.168.1.3] ([77.182.145.92]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MPHC8-1ehJ9L0zCq-004Q94; Sat, 20 Jan 2018 14:35:03 +0100 To: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?UTF-8?B?SsO2cmcgUsO2ZGVs?= , Krzysztof Kozlowski , Kukjin Kim , Marek Szyprowski Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Exynos-IOMMU: Delete an error message for a failed memory allocation in exynos_iommu_init() Message-ID: <1cdc825c-66d2-03ec-f7e5-935ca8d01f7e@users.sourceforge.net> Date: Sat, 20 Jan 2018 14:34:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:DNNFcsV0kOjWzli9XYZBsWGsAASQ1uhBZR4WyCgW19IpgxEX0cB Pwaaa+yAp4a20neJM7UMVcFfbX7jhv+eqR7FUOIQI/TmdJvWm3LFNOzRKkNSlBwWAAlw+aA l3XqBjZpzElJD0B57MosXpuP2mkIqARukHlzJMqtbvQ9N2uOszWtzizmkrdsU7u3rJfI4uh hRZuashinovfz6JnAbCGg== X-UI-Out-Filterresults: notjunk:1; V01:K0:U17kF8PgQiQ=:ub+v5s42OCavCa9XufGfF1 1dM/VVwcDjUHbNO9QVI3K1xcakH9tloykqZ5qu7XbFS4KXJBYZAjEefifDAGDMu2yRfxkXnxm Dno8GOtjgV7RHeVds8wm/n4RqzSMYM6oSZhVL4D5H+1Wofop8EpRbvragsVK+NJ3nV85tTfbE lS/5HHAF0ZUwZp5fh99kwEnpui0wGlMG1/8A0plbQGgbnOS1dfiodFKo7v1QyArR4N2yZG79p SOO5xuvvwDj4jAHnZsZoGw29j46m/5eM4KT/cQRwJLUOzrseopZPVIe8o8YQSsEJVDiXqqU25 RS2Rb8vF9VkHnuIwLiboPKD9iMAX0C3LCDApmWxNR56+DWM7lEe6+8nf+TPs9Gvc1IT+KgKId Linaoz8/K0FyRWtS3xEUgNSGFGIRaor6uUSNc0emzOSP12hmLKetfdBymGKnIDK0retlm2YU0 ozyYmeevPQ8CDZMG8Lj+50uRpiOrkfTjQdpX2RRB2ioAsUmA4+JMFP2eg6oXrqQ6vwviXdqGR 9ag101Vjnt1pNyPM43p+w9sYZSGH/B8bJMmOPq7rnBkPYjkItBxNgeqBRJ5YNdfTbACWLNvp6 wV7xPl3nW0URmsToKGETTUPDRlnNwlGf7Lrph9J1dJnrkshW4OXPiaIr1DDyUDjK+euLdkwQI ZoelCRTTzEnhTw8HDaTEfG7wTrTozgm50tmZD+L/Uu+GjggzKq+043tbzhjeN+K+pf3BoXbzf X5mPZWZhU3NO2EgpO4yqReBszZiLk8vwkKv7e7CYhKpaLfoOKsGhgufPIIK1xcshL9dFs8kpY 7mf5MVOIr0oS1Z5WwW5/hlVmXLXlUclwR9Kvqu+vHkE07KM+og= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 20 Jan 2018 14:28:13 +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/iommu/exynos-iommu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 79c45650f8de..456a88483089 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -1370,8 +1370,6 @@ static int __init exynos_iommu_init(void) zero_lv2_table = kmem_cache_zalloc(lv2table_kmem_cache, GFP_KERNEL); if (zero_lv2_table == NULL) { - pr_err("%s: Failed to allocate zero level2 page table\n", - __func__); ret = -ENOMEM; goto err_zero_lv2; }