The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1....@samsung.com>
---
 drivers/usb/gadget/fsl_udc_core.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/gadget/fsl_udc_core.c 
b/drivers/usb/gadget/fsl_udc_core.c
index a2f26cd..28e4fc9 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -2256,10 +2256,8 @@ static int __init struct_udc_setup(struct fsl_udc *udc,
        udc->phy_mode = pdata->phy_mode;
 
        udc->eps = kzalloc(sizeof(struct fsl_ep) * udc->max_ep, GFP_KERNEL);
-       if (!udc->eps) {
-               ERR("malloc fsl_ep failed\n");
+       if (!udc->eps)
                return -1;
-       }
 
        /* initialized QHs, take care of alignment */
        size = udc->max_ep * sizeof(struct ep_queue_head);
@@ -2342,10 +2340,8 @@ static int __init fsl_udc_probe(struct platform_device 
*pdev)
        u32 dccparams;
 
        udc_controller = kzalloc(sizeof(struct fsl_udc), GFP_KERNEL);
-       if (udc_controller == NULL) {
-               ERR("malloc udc failed\n");
+       if (udc_controller == NULL)
                return -ENOMEM;
-       }
 
        pdata = dev_get_platdata(&pdev->dev);
        udc_controller->pdata = pdata;
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to