usb: chipidea: core: Remove unneeded OOM message
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 26 Nov 2014 05:44:23 +0000 (13:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 17:28:11 +0000 (09:28 -0800)
MM core code already complains when devm_kzalloc() fails, so no need to print
the error locally.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c

index 5de1507b798cde4ac0e8f5f4ac425899ff5b5306..cde3d24ebd10e742264bf3fbcddaf4869ceb31e5 100644 (file)
@@ -633,10 +633,8 @@ static int ci_hdrc_probe(struct platform_device *pdev)
                return PTR_ERR(base);
 
        ci = devm_kzalloc(dev, sizeof(*ci), GFP_KERNEL);
-       if (!ci) {
-               dev_err(dev, "can't allocate device\n");
+       if (!ci)
                return -ENOMEM;
-       }
 
        ci->dev = dev;
        ci->platdata = dev_get_platdata(dev);