From: Jingoo Han Date: Wed, 23 Apr 2014 09:41:48 +0000 (+0900) Subject: pwm: tiehrpwm: Remove unnecessary OOM messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e34895392ef10a1302ad5b88aa9a88fa731bc9b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pwm: tiehrpwm: Remove unnecessary OOM messages The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index aee4471424d1..3a31c08cc6c8 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -440,10 +440,8 @@ static int ehrpwm_pwm_probe(struct platform_device *pdev) u16 status; pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); - if (!pc) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pc) return -ENOMEM; - } clk = devm_clk_get(&pdev->dev, "fck"); if (IS_ERR(clk)) {