From patchwork Tue Jan 17 12:44:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9520701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C12FD6020A for ; Tue, 17 Jan 2017 12:46:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7F5D28545 for ; Tue, 17 Jan 2017 12:46:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B1BF28546; Tue, 17 Jan 2017 12:46:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3493628542 for ; Tue, 17 Jan 2017 12:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbdAQMqE (ORCPT ); Tue, 17 Jan 2017 07:46:04 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:15426 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbdAQMqC (ORCPT ); Tue, 17 Jan 2017 07:46:02 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX007PXCQZ8V60@mailout2.w1.samsung.com>; Tue, 17 Jan 2017 12:44:59 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170117124459eucas1p2b16d2abc1b23b6cccbe75fec71fdea5d~aj8P8C9xa2589225892eucas1p26; Tue, 17 Jan 2017 12:44:59 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id B5.F7.09557.AC11E785; Tue, 17 Jan 2017 12:44:58 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170117124458eucas1p10463c19d77a501284c7302c3b848fecc~aj8PNCJm82811028110eucas1p1S; Tue, 17 Jan 2017 12:44:58 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-ca-587e11cac53d Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B5.A5.06687.2021E785; Tue, 17 Jan 2017 12:45:55 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJX00GNRCQPHB20@eusync2.samsung.com>; Tue, 17 Jan 2017 12:44:58 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 03/13] soc: samsung: pmu: Remove messages for failed memory allocation Date: Tue, 17 Jan 2017 13:44:34 +0100 Message-id: <1484657084-26227-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484657084-26227-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsWy7djPc7qnBOsiDP43GVtsnLGe1eL8+Q3s FlP+LG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Q9Q0JUlIoS8wpBfKMDNCAg3OAe7CSvl2CW8bFT41MBe/YKlYc6WBqYHzC2sXIwSEhYCLR 0RDUxcgJZIpJXLi3ng3EFhJYwiixZaEuhN3EJDF5RzqIzSZgKNH1tguohotDRKCZUaJhSS+Y wywwgUli5qcGJpAqYYFoiVMv/jGD2CwCqhLHdz5iBbF5BTwkJq7/xAyxTU7i5LHJYHFOAU+J Hz/XM0Fs85A4f38f6wRG3gWMDKsYRVJLi3PTc4sN9YoTc4tL89L1kvNzNzECA37bsZ+bdzBe 2hh8iFGAg1GJh9fhdk2EEGtiWXFl7iFGCQ5mJRHeuQJ1EUK8KYmVValF+fFFpTmpxYcYTYGO msgsJZqcD4zGvJJ4QxNDc0tDI2MLC3MjIyVx3pIPV8KFBNITS1KzU1MLUotg+pg4OKUaGOfx 5vE9+qEQmWpa8vbkuQL19+f1eTS2G029Fr5HrMznGKNeg5YA75YGKYYbc98tXlYdPfmdG5eT jm2uDavT67UyHXmqJ9h0+1wO75x1TVlS1qMvqeug/Ja/s6QXSu4TLDq568EHl3c9V6z0Fr8r szgY8WjGu48BarNCnvTa7e+2u8v8Xod9pRJLcUaioRZzUXEiAADyinqOAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117124458eucas1p10463c19d77a501284c7302c3b848fecc X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170117124458eucas1p10463c19d77a501284c7302c3b848fecc X-RootMTR: 20170117124458eucas1p10463c19d77a501284c7302c3b848fecc References: <1484657084-26227-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Memory subsystem already prints message about failed memory allocation, there is no need to do it in the driver. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 1f914e63dcc6..813df6e7292d 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -117,10 +117,8 @@ static int exynos_pmu_probe(struct platform_device *pdev) pmu_context = devm_kzalloc(&pdev->dev, sizeof(struct exynos_pmu_context), GFP_KERNEL); - if (!pmu_context) { - dev_err(dev, "Cannot allocate memory.\n"); + if (!pmu_context) return -ENOMEM; - } pmu_context->dev = dev; pmu_context->pmu_data = of_device_get_match_data(dev);