diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-06-18 09:50:08 +0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-08-07 15:14:33 +0400 |
commit | ed1a819a3fdbde279f3ca18e2268cc12666e9bf1 (patch) | |
tree | 6ab88cea9afe2ba2350bd24792288d9d0ed4bff8 /drivers | |
parent | eae266a284f370d40c50dbed7a988a744bab0d44 (diff) | |
download | linux-ed1a819a3fdbde279f3ca18e2268cc12666e9bf1.tar.xz |
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')
-rw-r--r-- | drivers/pwm/pwm-tipwmss.c | 4 |
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); |