From: Jingoo Han Date: Wed, 23 Apr 2014 09:40:08 +0000 (+0900) Subject: pwm: pxa: Remove unnecessary OOM messages X-Git-Tag: v3.16-rc1~42^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d93fc78f47f93a25a9f99fea613616901331d213;p=thirdparty%2Fkernel%2Flinux.git pwm: pxa: 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-pxa.c b/drivers/pwm/pwm-pxa.c index cd356d8702441..0b312ec420b69 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -179,10 +179,8 @@ static int pwm_probe(struct platform_device *pdev) return -EINVAL; pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); - if (pwm == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (pwm == NULL) return -ENOMEM; - } pwm->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(pwm->clk))