From patchwork Thu Jan 19 13:48:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9525869 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 20BAB601AE for ; Thu, 19 Jan 2017 13:51:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 128EB28517 for ; Thu, 19 Jan 2017 13:51:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0755B28529; Thu, 19 Jan 2017 13:51:04 +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 ACE5E28517 for ; Thu, 19 Jan 2017 13:51:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752763AbdASNu4 (ORCPT ); Thu, 19 Jan 2017 08:50:56 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:60332 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752742AbdASNtp (ORCPT ); Thu, 19 Jan 2017 08:49:45 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OK1001MG51U2B70@mailout4.w1.samsung.com>; Thu, 19 Jan 2017 13:49:07 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170119134906eucas1p10b3614d2ef13d106a02da4ea05bc1f20~bMGzmNXji2120721207eucas1p1d; Thu, 19 Jan 2017 13:49:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 48.B7.16908.4D3C0885; Thu, 19 Jan 2017 13:49:08 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170119134905eucas1p2ed9d6baf6283528289a36a58ee6c978e~bMGy08_UB0540305403eucas1p2c; Thu, 19 Jan 2017 13:49:05 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-c9-5880c3d4dcf7 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 50.20.10233.CC3C0885; Thu, 19 Jan 2017 13:49:00 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OK100BYG51LGB30@eusync1.samsung.com>; Thu, 19 Jan 2017 13:49:05 +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 v3 03/13] soc: samsung: pmu: Remove messages for failed memory allocation Date: Thu, 19 Jan 2017 14:48:43 +0100 Message-id: <1484833733-16082-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484833733-16082-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNIsWRmVeSWpSXmKPExsWy7djP87pXDjdEGFy8rGexccZ6Vovz5zew W0z5s5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kJJCWWJOKZBnZIAGHJwD3IOV9O0S3DK+HO1mLVjAXrHwUQdbA+NEti5GTg4JAROJ +Ve/MEHYYhIX7q0HinNxCAksYZR4MOM5C0hCSKCJSeLk/QIQm03AUKLrbRdYkYhAM6NEw5Je MIdZYAKTxMxPDWCjhAWiJZb8/c7YxcjBwSKgKtGwIAYkzCvgIfFg7QdmiG1yEiePTWYFsTkF PCWmzmlig1jmIbFk6UXWCYy8CxgZVjGKpJYW56bnFhvpFSfmFpfmpesl5+duYgSG/LZjP7fs YOx6F3yIUYCDUYmHt6OoPkKINbGsuDL3EKMEB7OSCK/N3oYIId6UxMqq1KL8+KLSnNTiQ4ym QDdNZJYSTc4HxmNeSbyhiaG5paGRsYWFuZGRkjjv1A9XwoUE0hNLUrNTUwtSi2D6mDg4pRoY T6YsNBK81vVz9/YsPSeVNddd/+7+0ev4s2JGWMWquWk3l1d4dN2c8/NP79wii1dRhTuKN4de 2ndy8f78i5Ei3XJ9C9ofPE/kd69xfuvjp/Ok6aX5zdxp7bWmqpcquH585+j8PnORv8/a98KP 7LjOmV5wl9y38c3m2qq5oQE7P6j5PlrzjU1YS4mlOCPRUIu5qDgRAF/scYWPAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170119134905eucas1p2ed9d6baf6283528289a36a58ee6c978e X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 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: 20170119134905eucas1p2ed9d6baf6283528289a36a58ee6c978e X-RootMTR: 20170119134905eucas1p2ed9d6baf6283528289a36a58ee6c978e References: <1484833733-16082-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 Reviewed-by: Tomasz Figa --- 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);