Received: by 10.223.176.46 with SMTP id f43csp46243wra; Fri, 19 Jan 2018 13:32:58 -0800 (PST) X-Google-Smtp-Source: ACJfBotv8RAvXaBZPtqw2fKbdoCDkgkNz93vrlkvuAaaiL3JFYSWVdWN7Kkppzf2llzlOJ5daEYg X-Received: by 10.101.82.205 with SMTP id z13mr41845929pgp.403.1516397578834; Fri, 19 Jan 2018 13:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516397578; cv=none; d=google.com; s=arc-20160816; b=oqHfjXYkCTOHZ5SDps4s/GS0eM/Mf/Z5HIVfscdxl3xMNGYzC+GChL7yi/4NZG/FyS 3qh9s/nGSFxzix4wLLoYhBn5rXHPVcFewhg9Gu14SbRsRUdvnf1kxe3A1+6COHmPnhgs 2jj+dVKZxIP1StEkcbTeYJTQEarHgg6vHfc8T0X44JooGLt72oSVHbX5XHOvRNzRL8n+ pyJ09ZuQf7BrEh4EN+kIro20vugXCdR/Xu58UoLXUPWZEpq/nrXpL7KXE2YEA3Zx0PA3 SgQ4jaHD33JJMrMg2QR1u6tlP1yBz3cuvCfRYCrW934UzUqKFmNkgf+TicePvdktsq0w MlCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=EfFBiNGfz78TXHi9DB8EuySW5eUb8OBZ1h4xptA2ycc=; b=rE/OvPXspze0NXuDO79zxgZ2URLC2djIH2/o5GBHr2pfrHg028Qy6EjzbE+53xLhzF Mx+KGe3emKatuhySnc0jgVkwKmHSoUtlLQVa3/GgYwcdywG/AXoV1LNNxVjlggBN9TCz bddvnWWDOld43eIekEEuDeaC9VgCuo2nHlj78GzsgsxpmBPMnudEwFgURcETblrs9kdI Xs8GgTxoCuO8QtrbqEEvxbXC81qh0gu11tmmMyPkWJTjrQPOK4beP4fS5sL+QqGuqVhK 4G0+jfdMiAXk/HpGg3ffYkyAkMzwSES68oJOU83q+yIxU5VhU5N/OPRzEVmC0dSeZO7s x7BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si8807664pgn.325.2018.01.19.13.32.43; Fri, 19 Jan 2018 13:32:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756546AbeASVad (ORCPT + 99 others); Fri, 19 Jan 2018 16:30:33 -0500 Received: from mout.web.de ([217.72.192.78]:61539 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754263AbeASVaZ (ORCPT ); Fri, 19 Jan 2018 16:30:25 -0500 Received: from [192.168.1.3] ([78.53.251.71]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LnSGg-1fJA3v1V4o-00hbub; Fri, 19 Jan 2018 22:30:21 +0100 To: iommu@lists.linux-foundation.org, =?UTF-8?B?SsO2cmcgUsO2ZGVs?= Cc: LKML , kernel-janitors@vger.kernel.org, Magnus Damm From: SF Markus Elfring Subject: [PATCH] IPMMU-VMSA: Delete an error message for a failed memory allocation in ipmmu_probe() Message-ID: <457b87a4-8653-913a-c678-328c1fb681db@users.sourceforge.net> Date: Fri, 19 Jan 2018 22:30:19 +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:Gdu3igtIx+DuCeevWPzZER/319m8cbXkxMf4qmWFsw05J7K0IuX DwjQQYaPE0hP/Pdx2QLDTY6htuJ5fVOWYHv0a/Sd8FO/m+FRcgrmFJT7vKFDaFfuOb+IKql EB1K++Kxf7Z/dDCclx0L0a6QYeM0QK8/LSTHd+h58IffENIramrfCaqOEwDbzjsb3i2QPCp E5G8OOWkqu4CrkOjDJwmg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZiWPon2jy+4=:e2Asu95sKHZkl2ePP/ar8v zocfheVlkjwQT1PJdCQZkr7/zVlt7FIIW5abmO7FyRzCV5ceE2Eyemn67ciaSRDdvD++/ia/4 h2t9XgBEMnrewdlLLecL6bb1mVzAVzNtKh6yW6PYdpx4jZPiPe6cHht5+0AtR6jCVkwO2Yzig nBk77GD26pAXpl4ruRDqpRREnCG4QpmAdrgw9HOBLV1B47iH9So4IJCDlbxLNU1jVavka47QL g6y6KwM+CpEzWTNomd6oAmA0qg0ABYCHJDQDU5SBIsOHyb+SEDul2kpxv/fYq2bG6lUZ9iF5D jtd7dGZ9kTrBbbQf7At3h1klsYn6bz2moTe06EnEIi8mRL2liwqkjBGt3VomaCHaIxlCyZfRR QYT9x/7NS7WZ91+9joJ8YNnlHHKUxJoBYf2TToqRcu9otl5xUDYntRJvADvbWOLsddKnz9xu4 lqTl9zf8tJaFyZXlVsxS0nIsb+r8q5vSkCBVwxmhAqVdaFvBdV1WOQ8RTSnH7Sl2sN3pqMh2q Jmr/A3sOyN4kYnNS0v5RqhPlG4JIrBjymXmGW2Ih4qd7l0JoSJWmSaBre6JkL0KERJ9dXsJku CwGnUE+pebzp294D7KcEXLw4uqBCkNxRW5v4Kgp47BiOFNonJboz3355dbPt6C1g19FciiJvB C1sdik6tH352bQ3q0pXf2Q21to2K9Ixze6CimKau462ys2cHWD2prz/NKLo3fyFvjnSO4kCzA +pU11m4qurA6SCAXH96e81djnRcfYE8EghAZ5xqTjFrAGZpLhYbWHK8dRjWKopf9SlqnlZTgV 61ydNRdzGItVi/axzIf5XqDYUX0+NQZaVjMhKZPie4xXc1d1QQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 19 Jan 2018 22:22:38 +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/ipmmu-vmsa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 8dce3a9de9d8..1f78d60f2029 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -949,10 +949,8 @@ static int ipmmu_probe(struct platform_device *pdev) int ret; mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL); - if (!mmu) { - dev_err(&pdev->dev, "cannot allocate device data\n"); + if (!mmu) return -ENOMEM; - } mmu->dev = &pdev->dev; mmu->num_utlbs = 32; -- 2.15.1