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: 91903 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp278701obz; Thu, 19 Jan 2017 05:50:59 -0800 (PST) X-Received: by 10.99.109.206 with SMTP id i197mr10300735pgc.4.1484833859589; Thu, 19 Jan 2017 05:50:59 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3607453pgh.133.2017.01.19.05.50.59; Thu, 19 Jan 2017 05:50:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752744AbdASNu4 (ORCPT + 4 others); 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 W0z5s5zJYtPja6wWm+f/YbT43HuE0WLG+X1MFmuP3GW3OPymndVi1a4/jA5cHjtn3WX32LSq k83jzrU9bB6bl9R79G1ZxejxeZNcAFsUl01Kak5mWWqRvl0CV8aXo92s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UKLrbRdYkYhAM6NEw5Je 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?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);