Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756331AbaD2IQC (ORCPT ); Tue, 29 Apr 2014 04:16:02 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:43001 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbaD2IP6 (ORCPT ); Tue, 29 Apr 2014 04:15:58 -0400 X-AuditID: cbfee691-b7f3e6d000002ce8-50-535f5fa8e952 From: Jingoo Han To: "'Herbert Xu'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" , "'Michael Buesch'" , "'Lokesh Vutla'" Subject: [PATCH 1/2] hwrng: omap - remove unnecessary OOM messages Date: Tue, 29 Apr 2014 17:15:36 +0900 Message-id: <002201cf6383$3307d290$991777b0$%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: Ac9jgzLwkY90e/dFTi+TIinm6d8CaQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t8zA90V8fHBBg2ndSy6X8lYXF54idXi 8q45bBYrOr4wWqya+4TVgdVj9vFHbB7bDqh69G1Zxehx/MZ2Jo/Pm+QCWKO4bFJSczLLUov0 7RK4Ms6dOsFScJKtYuOtTewNjPtZuxg5OSQETCTmru2CssUkLtxbz9bFyMUhJLCMUWLlid1M MEWXtnwGs4UEFjFK7L1uDVH0m1Hi1/a7jCAJNgE1iS9fDrOD2CICehJ96xvB4swCnYwS969V gtjCAk4S3xZfAathEVCVWN7cBGbzCthKvPm9jRnCFpT4MfkeC0SvlsT6nceZIGx5ic1r3gLV cAAdpC7x6K8uiAmy6myXMkSFiMS+F+8YQU6TENjFLtE86TcjxCoBiW+TD7FAtMpKbDrADPGW pMTBFTdYJjCKzUKyeBaSxbOQLJ6FZMUCRpZVjKKpBckFxUnpRaZ6xYm5xaV56XrJ+bmbGCEx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Lfo66fO3c4NHDC82msE8o9k46LxlUIdOpc 2Luk78idF83Mk+O0ZUReMxU4vqy5YNlVcn/PnWX9VlOTJsvfmvAp4yG3rK/Ry6AD0hP55aWy HguFK7EUZyQaajEXFScCAGLjnkosAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/char/hw_random/omap-rng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index 9b89ff4..f66ea25 100644 --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c @@ -369,10 +369,8 @@ static int omap_rng_probe(struct platform_device *pdev) int ret; priv = devm_kzalloc(dev, sizeof(struct omap_rng_dev), GFP_KERNEL); - if (!priv) { - dev_err(&pdev->dev, "could not allocate memory\n"); + if (!priv) return -ENOMEM; - }; omap_rng_ops.priv = (unsigned long)priv; platform_set_drvdata(pdev, priv); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/