From patchwork Wed May 7 06:05:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4125731 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 E8EE59F23C for ; Wed, 7 May 2014 06:05:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 39DBB20222 for ; Wed, 7 May 2014 06:05:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DB15201F9 for ; Wed, 7 May 2014 06:05:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755227AbaEGGFh (ORCPT ); Wed, 7 May 2014 02:05:37 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:24567 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755218AbaEGGFe (ORCPT ); Wed, 7 May 2014 02:05:34 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5600K72WX9ISC0@mailout3.samsung.com> for linux-pm@vger.kernel.org; Wed, 07 May 2014 15:05:33 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A8.9E.18501.D2DC9635; Wed, 07 May 2014 15:05:33 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-32-5369cd2d87f9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2F.28.27725.D2DC9635; Wed, 07 May 2014 15:05:33 +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 <0N5600HFGWX83J00@mmp1.samsung.com>; Wed, 07 May 2014 15:05:32 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, 'Jingoo Han' , 'Viresh Kumar' References: <01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com> In-reply-to: <01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com> Subject: [PATCH 3/3] thermal: spear: remove unnecessary OOM messages Date: Wed, 07 May 2014 15:05:32 +0900 Message-id: <01ad01cf69ba$5af198d0$10d4ca70$%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: Ac9pug8FVI2rvJM7TgGUyoi45znyPAAADLsA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsVy+t8zA13ds5nBBscvcFus2f+TyeLywkus Fp97jzBaPHnYx2ax8auHA6vH4j0vmTzuXNvD5tG3ZRWjx/Eb25k8Pm+SC2CN4rJJSc3JLEst 0rdL4Mo4Mf0fc8Fmtoo9bZ/YGhhXsnYxcnJICJhIzNg9lx3CFpO4cG89WxcjF4eQwDJGiYd7 trDAFN26eJMRIrGIUaJ/4nJmCOc3o8S8xevB2tkE1CS+fDkMZosIqErcOt3DBFLELDCLUWLb l91g+4QEbCVeXGkFG8spYCdx9OISsLiwgIvE6XObmEBsFqDm/9/fMILYvED1j+b9YYKwBSV+ TL4H1sssoCWxfudxJghbXmLzmrdAF3EAnaou8eivLogpImAk0X/ECqJCRGLfi3dgD0gI3GOX mDlrLivEKgGJb5MPsUC0ykpsOsAM8bCkxMEVN1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gfTEktTs1NSC1CKYLUwcnFIN jCysO8S8Z9iUChi6nVeenJQj2aL7/ffCqLXbAp/6JjQ/iHCdnjz934ytVZ9/brH7GVjGGJ67 43ju/ySfrUrHDtytDHx6LOVIxQr+gONRtSl/H30W3bij+/qa1X8ubz/9pkBy4YkLnSJFid+n hn5bwrUu46u445ayu+E/dTayaHVMe+NxbWurtokSS3FGoqEWc1FxIgDme+tKRwMAAA== 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: Viresh Kumar --- drivers/thermal/spear_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index ab79ea4..1e2193f 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -113,10 +113,8 @@ static int spear_thermal_probe(struct platform_device *pdev) } stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL); - if (!stdev) { - dev_err(&pdev->dev, "kzalloc fail\n"); + if (!stdev) return -ENOMEM; - } /* Enable thermal sensor */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);