From patchwork Wed Nov 12 03:22:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5283451 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 560E2C11AC for ; Wed, 12 Nov 2014 03:22:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5197D20155 for ; Wed, 12 Nov 2014 03:22:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D9342013D for ; Wed, 12 Nov 2014 03:22:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753283AbaKLDW2 (ORCPT ); Tue, 11 Nov 2014 22:22:28 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:22770 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752848AbaKLDW0 (ORCPT ); Tue, 11 Nov 2014 22:22:26 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEW00H7WPD6ISA0@mailout2.samsung.com> for linux-pci@vger.kernel.org; Wed, 12 Nov 2014 12:22:18 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 31.ED.17016.A62D2645; Wed, 12 Nov 2014 12:22:18 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-40-5462d26af797 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4E.A5.09430.A62D2645; Wed, 12 Nov 2014 12:22:18 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEW001J1PD4GN41@mmp2.samsung.com>; Wed, 12 Nov 2014 12:22:18 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Jingoo Han' , 'Murali Karicheri' , 'Santosh Shilimkar' Subject: [PATCH] PCI: keystone: Remove unnecessary OOM message Date: Wed, 12 Nov 2014 12:22:56 +0900 Message-id: <002601cffe27$f7bca9f0$e735fdd0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/+J/N9ET2kNAqiTXqCbb7f2t3gQA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsVy+t8zY92sS0khBlMnCVksacqwuLzwEqvF 2XnH2Sz6eg+wWdzZvJnVgdVjwaZSj02rOtk8+rasYvQ4fmM7k8fnTXIBrFFcNimpOZllqUX6 dglcGTd2/2MvWMBesbHtEGMD4y/WLkZODgkBE4nn8/4zQ9hiEhfurWfrYuTiEBJYxiixZ+cG pi5GDrCilmeMEPHpjBJbbq1khnB+MUqc+nyIDaSbTUBN4suXw+wgtoiApsTsFVuYQIqYBWYx SjT/gEgIC9hJnN95ghHEZhFQlZi+YxsryAZeAVuJX/djQcK8AoISPybfYwGxmQW0JNbvPM4E YctLbF7zlhniIHWJR391IVbpSfy+to0NokREYt+Ld2CHSgjsY5fYd2wvG8QqAYlvkw+xQPTK Smw6APWwpMTBFTdYJjCKzUKyeRaSzbOQbJ6FZMUCRpZVjKKpBckFxUnpRYZ6xYm5xaV56XrJ +bmbGCFR17uD8fYB60OMAhyMSjy8CWuSQo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pfEDP4 vP6d1PF7Fbd2S/FyXNFKZDJrXCFucei4oVTxn5k1bpEKp5hsHNkm/PuzZ/utZpcP4hnVyh/O z920jL3+lRJLcUaioRZzUXEiAC2anNf/AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. This patch fixes the following checkpatch warning. WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Jingoo Han --- drivers/pci/host/pci-keystone.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pci-keystone.c b/drivers/pci/host/pci-keystone.c index 1b893bc..62b9454 100644 --- a/drivers/pci/host/pci-keystone.c +++ b/drivers/pci/host/pci-keystone.c @@ -353,10 +353,9 @@ static int __init ks_pcie_probe(struct platform_device *pdev) ks_pcie = devm_kzalloc(&pdev->dev, sizeof(*ks_pcie), GFP_KERNEL); - if (!ks_pcie) { - dev_err(dev, "no memory for keystone pcie\n"); + if (!ks_pcie) return -ENOMEM; - } + pp = &ks_pcie->pp; /* initialize SerDes Phy if present */