clocksource: em_sti: Remove unnecessary OOM messages
authorJingoo Han <[email protected]>
Thu, 22 May 2014 12:05:06 +0000 (14:05 +0200)
committerDaniel Lezcano <[email protected]>
Fri, 23 May 2014 07:23:10 +0000 (09:23 +0200)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
drivers/clocksource/em_sti.c

index 9d170834fcf3559a318becf709d34618505b1de7..d0a7bd66b8b91e0eb9aa4f7092ec42869a9067d8 100644 (file)
@@ -318,10 +318,8 @@ static int em_sti_probe(struct platform_device *pdev)
        int irq;
 
        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;
-       }
 
        p->pdev = pdev;
        platform_set_drvdata(pdev, p);