diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-06-18 14:50:08 +0900 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-08-07 13:14:33 +0200 |
commit | ed1a819a3fdbde279f3ca18e2268cc12666e9bf1 (patch) | |
tree | 6ab88cea9afe2ba2350bd24792288d9d0ed4bff8 /drivers | |
parent | eae266a284f370d40c50dbed7a988a744bab0d44 (diff) | |
download | op-kernel-dev-ed1a819a3fdbde279f3ca18e2268cc12666e9bf1.zip op-kernel-dev-ed1a819a3fdbde279f3ca18e2268cc12666e9bf1.tar.gz |
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 3b119bc..67481dc 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); |