Received: by 10.223.176.46 with SMTP id f43csp844460wra; Sat, 20 Jan 2018 06:02:29 -0800 (PST) X-Google-Smtp-Source: AH8x224IMdsSumAYczE0p99003H4NjahR6dSjkYOsHZ4P4sS9XpegCL4XKMBX6LIHbmLl6xDMNFw X-Received: by 10.99.111.65 with SMTP id k62mr2026207pgc.253.1516456949326; Sat, 20 Jan 2018 06:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516456949; cv=none; d=google.com; s=arc-20160816; b=SQWm8l5NVEDBFQNksFj5OBBzV7HqKOE/bJFMPgodYAKoctdi7RCgr6S5hSnV+zoKNp oVbS6oMvhHjXsPGK9CAH8TrKegs5Z9f51CeBWoY8J0nzKdjgzaVAGA/8N3pxaECmPnOi /YJ/ieM9IV6A9RFCJxIplpOffxu19FVoNmqu1S+ncNc+cAIwmztP7RtdjhUkKjHki2Dh mPFpExDF1vE800Z6s9bNB/HFeH2IRTHwQd7l40ZCmkZj04gFvpdlM9u2+gNjnENxesLY etoMlfsSGstdcHaZsZJhwaugK2fatNey9PteuPm1BTz+nIMY64s2R7OX64Ti0X4/1zXX AVmA== 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=0Xj3ovQudrcIpRDVxICLJfusV/YWdYXtro++ahA/Cqk=; b=WgY9de9rOuXy3bJOXVeWN+K1UtDRh6fNr2lfjHRibvZylG2EhGK6+FSQM6ewfkMZDG zvcIZA8dBrgh4EQ4GeGZbaMTxtFIc8CV3dIGTuNJtSfGS78LcbR4Fns5Zru7dlsgNRM8 Hpm791x4jHOk7SHXpwdKIzvTJe4eFMGT8757FfokSyqGBhUwX2HxXBSBiHCBL4ATxAKn C5eANPcynHaWWJoxpqEWkf8v795YCTCiXzRrhsZHkZTIW8WFAj0BpfsyBprm+NOo474J /RNb1HSmRID8T3h1NuLsY6/Mkh39Ms5fxOqPmgHVl0nKmyo8FSvDMFpOxUirhdmiwi53 R+Aw== 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 r88si11409096pfi.263.2018.01.20.06.02.15; Sat, 20 Jan 2018 06:02:29 -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 S1754752AbeATOAT (ORCPT + 99 others); Sat, 20 Jan 2018 09:00:19 -0500 Received: from mout.web.de ([212.227.17.12]:57262 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbeATOAN (ORCPT ); Sat, 20 Jan 2018 09:00:13 -0500 Received: from [192.168.1.3] ([77.182.145.92]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M3k4b-1euHz12fPV-00rHMT; Sat, 20 Jan 2018 15:00:10 +0100 To: iommu@lists.linux-foundation.org, =?UTF-8?B?SsO2cmcgUsO2ZGVs?= Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] iommu/dmar: Delete an error message for a failed memory allocation in dmar_alloc_pci_notify_info() Message-ID: Date: Sat, 20 Jan 2018 15:00:07 +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:lA4Hp/nWbX1l+jTbQtZes4TupeY5Fkfwmu8OFOXcsrG6+O9Fkwa Tk2lk09QLN+ynAAa7M25Z3m/MVxS0xOG1xbh7q9Mt+Zc7z5OMiu4P72r8c5zWZHIfcrKX14 WQTNgAVBr4elO03LpV9yQoOBxX5SUIPfl07McZuYy6g7fhWjrzIHgphE6wPbc6MgD2dqixQ wTl00XDMUfUCLIUyVkDKw== X-UI-Out-Filterresults: notjunk:1;V01:K0:fHGwpvpJXxM=:XxTwaK2/AYlw4uotgb5UEK S5l6gshQ84GEC0jiQJZqCvi+MtNNQdpUk6eGRE8xdyrt43K2ExzE8JFYKaUV839LKESMnqY+N sIBj1rgWGFy6MTNEcDAvQsmgAbVQR1ombrLIxZrL1J+3PoI7E5W3wV0ORwuIzYo4ivv3nW2Pk 73cuGS769dB1qKaBnlyUBO9G3UMQgt43j6G5aE++mYx2aWheCe55VJmtK2GwNii17XXDbupfc +lZkTUf/zYul1hyMZ065HrkLqYxIryNuJNPWmj0eXN1aUD7T05yw9TDKpX6XHvYRsu2UxabUc uQQS1g70uOrhgAFKc3FUuxoxcvbARtdDzjnDAxyUp3LDE2Vz3d3czeTzedbfcMY+WFZVWc2Wu OlMe0EX1aEvL9qO4q1pWmovLoFIAQINnTpkhWFMbw7gSqsXED6Hz4rQ+BJUdGIj4SliETtwWf SQ4R7XZ/6owp8DdNgtBa8vOKHvuWYuXb0ONZTv7uX6jEznnoVKwi6JvpREEZeGwRQx32twG2H 3YVYlS4jzmL5tUcwm/v8s28q4UNf1wvDO3H08mgEs94V8t3KZDCXq0w9Ec6kdZ+YdguySKEJn lxLpeU8upmyXGIzgcPDYohEVtefokUUq65Pjl93tHzSClJXrFDDgn0SeURM/J3aJ0L1Bb3Dvc SnOClkZ7g/3lkn3t4RMO5lUGNvvWbFbToZz54pj/eNslA6mAJXhZ4ICMQsxOC9Xziq7WMLj51 lM2C+mEH4uX4QOVN4AVWEvhaKl1fDmzGON0Y9S5mtdo7+xOPwBGcQGJPog/CwLa+wgWliIoG4 tJD5DzYNy4xjYDpc9q47zqf2XgfWaUSJ7jGtgVqUCM7tqTZUng= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 20 Jan 2018 14:55:21 +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/dmar.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index 9a7ffd13c7f0..da6b121590cc 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -150,8 +150,6 @@ dmar_alloc_pci_notify_info(struct pci_dev *dev, unsigned long event) } else { info = kzalloc(size, GFP_KERNEL); if (!info) { - pr_warn("Out of memory when allocating notify_info " - "for %s.\n", pci_name(dev)); if (dmar_dev_scope_status == 0) dmar_dev_scope_status = -ENOMEM; return NULL; -- 2.15.1