diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-23 13:41:27 +0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-04-28 15:37:48 +0400 |
commit | c10d50631f29a1f09a0f3286e988877bd76733e3 (patch) | |
tree | 4e7adc0e6e9d41cc4c499580f1e19a4104ecf775 | |
parent | 474b69025d60a8c45ecd32f9ae422c7c1a86853e (diff) | |
download | linux-c10d50631f29a1f09a0f3286e988877bd76733e3.tar.xz |
pwm: pwm-tiecap: 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 <jg1.han@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-tiecap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index 032092c7a6ae..74efbe7f20c3 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c @@ -209,10 +209,8 @@ static int ecap_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)) { |