Browse Source

clocksource: em_sti: 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: Daniel Lezcano <daniel.lezcano@linaro.org>
Jingoo Han 11 years ago
parent
commit
39dd56776e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/clocksource/em_sti.c

+ 1 - 3
drivers/clocksource/em_sti.c

@@ -318,10 +318,8 @@ static int em_sti_probe(struct platform_device *pdev)
 	int irq;
 	int irq;
 
 
 	p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
 	p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
-	if (p == NULL) {
-		dev_err(&pdev->dev, "failed to allocate driver data\n");
+	if (p == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
-	}
 
 
 	p->pdev = pdev;
 	p->pdev = pdev;
 	platform_set_drvdata(pdev, p);
 	platform_set_drvdata(pdev, p);