aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/fotg210-udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/fotg210-udc.c')
-rw-r--r--drivers/usb/gadget/fotg210-udc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/gadget/fotg210-udc.c b/drivers/usb/gadget/fotg210-udc.c
index 2d0305280e8c..e143d69f6017 100644
--- a/drivers/usb/gadget/fotg210-udc.c
+++ b/drivers/usb/gadget/fotg210-udc.c
@@ -1112,17 +1112,13 @@ static int fotg210_udc_probe(struct platform_device *pdev)
1112 1112
1113 /* initialize udc */ 1113 /* initialize udc */
1114 fotg210 = kzalloc(sizeof(struct fotg210_udc), GFP_KERNEL); 1114 fotg210 = kzalloc(sizeof(struct fotg210_udc), GFP_KERNEL);
1115 if (fotg210 == NULL) { 1115 if (fotg210 == NULL)
1116 pr_err("kzalloc error\n");
1117 goto err_alloc; 1116 goto err_alloc;
1118 }
1119 1117
1120 for (i = 0; i < FOTG210_MAX_NUM_EP; i++) { 1118 for (i = 0; i < FOTG210_MAX_NUM_EP; i++) {
1121 _ep[i] = kzalloc(sizeof(struct fotg210_ep), GFP_KERNEL); 1119 _ep[i] = kzalloc(sizeof(struct fotg210_ep), GFP_KERNEL);
1122 if (_ep[i] == NULL) { 1120 if (_ep[i] == NULL)
1123 pr_err("_ep kzalloc error\n");
1124 goto err_alloc; 1121 goto err_alloc;
1125 }
1126 fotg210->ep[i] = _ep[i]; 1122 fotg210->ep[i] = _ep[i];
1127 } 1123 }
1128 1124