summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-23 18:41:10 +0900
committerThierry Reding <thierry.reding@gmail.com>2014-04-28 13:37:48 +0200
commit474b69025d60a8c45ecd32f9ae422c7c1a86853e (patch)
treeaacd6e5a844a05da994d9befd923ec9d20e7ec88 /drivers
parent9321fe9dbe1e32c2f24ba4b1fa92547016cd1174 (diff)
downloadlinux-474b69025d60a8c45ecd32f9ae422c7c1a86853e.tar.gz
linux-474b69025d60a8c45ecd32f9ae422c7c1a86853e.tar.bz2
linux-474b69025d60a8c45ecd32f9ae422c7c1a86853e.zip
pwm: tegra: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-tegra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
index 74298c561c4e..61d86b9498ca 100644
--- a/drivers/pwm/pwm-tegra.c
+++ b/drivers/pwm/pwm-tegra.c
@@ -173,10 +173,8 @@ static int tegra_pwm_probe(struct platform_device *pdev)
int ret;
pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
- if (!pwm) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!pwm)
return -ENOMEM;
- }
pwm->dev = &pdev->dev;