From patchwork Wed Nov 12 03:29:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5283611 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B5A29F2ED for ; Wed, 12 Nov 2014 03:28:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B666520142 for ; Wed, 12 Nov 2014 03:28:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3BC42013D for ; Wed, 12 Nov 2014 03:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754658AbaKLD2X (ORCPT ); Tue, 11 Nov 2014 22:28:23 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:60119 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755202AbaKLD2T (ORCPT ); Tue, 11 Nov 2014 22:28:19 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEW002WLPN64200@mailout3.samsung.com> for linux-pci@vger.kernel.org; Wed, 12 Nov 2014 12:28:18 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 7D.B2.19034.2D3D2645; Wed, 12 Nov 2014 12:28:18 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-5a-5462d3d2d793 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4D.86.09430.1D3D2645; Wed, 12 Nov 2014 12:28:18 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEW00K3APN5QJA0@mmp1.samsung.com>; Wed, 12 Nov 2014 12:28:17 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Jingoo Han' , 'Mohit Kumar' , 'Viresh Kumar' , 'Pratyush Anand' Subject: [PATCH] PCI: spear: Remove unnecessary OOM message Date: Wed, 12 Nov 2014 12:29:02 +0900 Message-id: <002d01cffe28$ce2f5870$6a8e0950$%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/+KM4ZLs2cVk7pQTqivQk7Tp4Waw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsVy+t8zI91Ll5NCDA7/ZLFY0pRh8fKQpsXl hZdYLc7OO85msXHqL0aL9kvKFhu/ejiweyzYVOpx59oeNo++LasYPZ7+2Mvs8XmTXABrFJdN SmpOZllqkb5dAlfG+ZYN7AXP2Cuub//A0sB4jK2LkZNDQsBEYsL6J8wQtpjEhXvrgeJcHEIC yxglrh+6Blf08FQfVGIRo8Tl649ZIJxfjBKbVjSwg1SxCahJfPlyGMwWEdCUmL1iCxNIEbPA XkaJ99t3M4IkhAWsJRq/PwPbxyKgKtG5eClYnFfAVmLnkrvsELagxI/J91hAbGYBLYn1O48z QdjyEpvXvAXq5QA6SV3i0V9diF16EsvPNDJClIhI7HvxjhFkr4TAMXaJe0dms0LsEpD4NvkQ C0SvrMSmA1AvS0ocXHGDZQKj2Cwkm2ch2TwLyeZZSFYsYGRZxSiaWpBcUJyUXmSqV5yYW1ya l66XnJ+7iRE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aeGFLOVtHdbPZ2tcrDjyvUjXyyB2nrDfpd8CfSVvPFnN87fVqj7dfq1WbEPrRY/u F6FBgnO7JdLztTh3sD7usHB8dHbhxi23lq/aF3z2wo3GS0UP50jM+Zjxp1vnL2tjxv4V09Zw +Dx7cXyDcImwauMKJZbijERDLeai4kQAGY0o4QgDAAA= 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 Acked-by: Viresh Kumar --- drivers/pci/host/pcie-spear13xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 85f594e..4647b62 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -308,10 +308,8 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev) int ret; spear13xx_pcie = devm_kzalloc(dev, sizeof(*spear13xx_pcie), GFP_KERNEL); - if (!spear13xx_pcie) { - dev_err(dev, "no memory for SPEAr13xx pcie\n"); + if (!spear13xx_pcie) return -ENOMEM; - } spear13xx_pcie->phy = devm_phy_get(dev, "pcie-phy"); if (IS_ERR(spear13xx_pcie->phy)) {