]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/fsl_udc_core.c
Merge tag 'usb-for-v3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi...
[karo-tx-linux.git] / drivers / usb / gadget / fsl_udc_core.c
index a2f26cdb56fef07a0a15e8bb329c089413efab6a..28e4fc957026746f25bb605cec0d54387e00d570 100644 (file)
@@ -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;