summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-06-18 07:50:08 +0200
committerThierry Reding <thierry.reding@gmail.com>2014-08-07 13:14:33 +0200
commited1a819a3fdbde279f3ca18e2268cc12666e9bf1 (patch)
tree6ab88cea9afe2ba2350bd24792288d9d0ed4bff8 /drivers/pwm
parentpwm: rockchip: document device tree bindings (diff)
downloadlinux-ed1a819a3fdbde279f3ca18e2268cc12666e9bf1.tar.xz
linux-ed1a819a3fdbde279f3ca18e2268cc12666e9bf1.zip
pwm: pwm-tipwmss: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. The following checkpatch warning is also removed. WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-tipwmss.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tipwmss.c b/drivers/pwm/pwm-tipwmss.c
index 3b119bc2c3c6..67481dc6da3f 100644
--- a/drivers/pwm/pwm-tipwmss.c
+++ b/drivers/pwm/pwm-tipwmss.c
@@ -62,10 +62,8 @@ static int pwmss_probe(struct platform_device *pdev)
struct device_node *node = pdev->dev.of_node;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
mutex_init(&info->pwmss_lock);