usb: dwc2: gadget: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 3 Jun 2014 13:15:56 +0000 (22:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 22:56:13 +0000 (15:56 -0700)
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>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c

index df432726333ae3c01815aa5451124f04f5c0389f..73df48a6cc2249c9def1f6a72caf1d5cddd9a8a4 100644 (file)
@@ -3391,10 +3391,8 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
        int i;
 
        hsotg = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsotg), GFP_KERNEL);
-       if (!hsotg) {
-               dev_err(dev, "cannot get memory\n");
+       if (!hsotg)
                return -ENOMEM;
-       }
 
        /*
         * Attempt to find a generic PHY, then look for an old style
@@ -3513,7 +3511,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
        eps = kcalloc(hsotg->num_of_eps + 1, sizeof(struct s3c_hsotg_ep),
                      GFP_KERNEL);
        if (!eps) {
-               dev_err(dev, "cannot get memory\n");
                ret = -ENOMEM;
                goto err_supplies;
        }
This page took 0.027406 seconds and 5 git commands to generate.