Skip to contentSkip to conversation

pwm: pwm-tipwmss: remove unnecessary OOM messages

PATCH Applied Jingoo Han 2 participants 2 messages Jun 18, 2014 – Aug 7, 2014 PWM

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 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

---
 drivers/pwm/pwm-tipwmss.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/pwm/pwm-tipwmss.c +1 -3
index 3b119bc..67481dc 100644
@@ -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);
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 10 lines · Jingoo Han

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

---
 drivers/pwm/pwm-tipwmss.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Applied, thanks.

Thierry