From patchwork Wed May 7 06:03:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4125671 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 BD8D2BFF02 for ; Wed, 7 May 2014 06:03:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED16320268 for ; Wed, 7 May 2014 06:03:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2326C201F9 for ; Wed, 7 May 2014 06:03:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751342AbaEGGD1 (ORCPT ); Wed, 7 May 2014 02:03:27 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:24109 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbaEGGD1 (ORCPT ); Wed, 7 May 2014 02:03:27 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5600KXFWTPBUB0@mailout3.samsung.com> for linux-pm@vger.kernel.org; Wed, 07 May 2014 15:03:25 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id C0.C4.14563.DACC9635; Wed, 07 May 2014 15:03:25 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-bd-5369ccadc596 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 20.23.25708.DACC9635; Wed, 07 May 2014 15:03:25 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5600B9BWTP4RB0@mmp1.samsung.com>; Wed, 07 May 2014 15:03:25 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, 'Jingoo Han' , 'Kuninori Morimoto' , 'Simon Horman' Subject: [PATCH 1/3] thermal: rcar: remove unnecessary OOM messages Date: Wed, 07 May 2014 15:03:25 +0900 Message-id: <01a401cf69ba$0f1b88d0$2d529a70$%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: Ac9pug8FVI2rvJM7TgGUyoi45znyPA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zY921ZzKDDRa80rNYs/8nk8WFtx/Y LC4vvMRq8erwLkaLz71HGC2ePOxjc2DzWLznJZPHtzMTWTz6tqxi9Dh+YzuTx5yf31g8Pm+S C2CL4rJJSc3JLEst0rdL4MqY9GA/W8FOjor+/huMDYw/2LoYOTkkBEwkDn1sYoWwxSQu3FsP FOfiEBJYxiix9H4zM0zR8l1P2SESixglTvz6CuX8ZpT4dPgn2Cg2ATWJL18Os4PYIgKqErdO 9zCBFDEL3GSUOPj9HRNIQljAWaK1eQpYEQtQ0Z/fm8GaeQVsJVb8esQEYQtK/Jh8jwXEZhbQ kli/8zgThC0vsXnNW6CTOIBOUpd49FcXYpeexMQNx6DKRST2vXjHCHH1JXaJu1v4IFYJSHyb fIgFolVWYtMBqMckJQ6uuMEygVFsFpLFs5AsnoVk8SwkGxYwsqxiFE0tSC4oTkovMtIrTswt Ls1L10vOz93ECInHvh2MNw9YH2JMBl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hHY17c0R735viGX5/TIswmjX2x/Sx964vHoQ ciDF+vbt7SZ3DSfer5vSw9DybBZjQuuj1I5pDQq6fIor+gJlbcMvXp3SqbpV6AtX4IPSKnXL A0YJU8rv9O1yzd77QmIHq0hY828lluKMREMt5qLiRAAwrACqOwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 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. Signed-off-by: Jingoo Han Acked-by: Simon Horman --- drivers/thermal/rcar_thermal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 5a37940..105ab5e 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -374,10 +374,8 @@ static int rcar_thermal_probe(struct platform_device *pdev) int idle = IDLE_INTERVAL; common = devm_kzalloc(dev, sizeof(*common), GFP_KERNEL); - if (!common) { - dev_err(dev, "Could not allocate common\n"); + if (!common) return -ENOMEM; - } INIT_LIST_HEAD(&common->head); spin_lock_init(&common->lock); @@ -423,7 +421,6 @@ static int rcar_thermal_probe(struct platform_device *pdev) priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) { - dev_err(dev, "Could not allocate priv\n"); ret = -ENOMEM; goto error_unregister; }