summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/fotg210-udc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 15:42:21 +0900
committerFelipe Balbi <balbi@ti.com>2014-05-14 09:23:27 -0500
commit0351c329f72a41ca712310587d3f7ca82fd8015f (patch)
tree8e37c52b75374eb6fc851fc729742e3a2f78cf51 /drivers/usb/gadget/fotg210-udc.c
parentd48d41f18a762c765df87d14b554485e52c393cd (diff)
downloadop-kernel-dev-0351c329f72a41ca712310587d3f7ca82fd8015f.zip
op-kernel-dev-0351c329f72a41ca712310587d3f7ca82fd8015f.tar.gz
usb: gadget: fotg210-udc: remove unnecessary OOM messages
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> Signed-off-by: Felipe Balbi <balbi@ti.com>
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 2d03052..e143d69 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)
/* initialize udc */
fotg210 = kzalloc(sizeof(struct fotg210_udc), GFP_KERNEL);
- if (fotg210 == NULL) {
- pr_err("kzalloc error\n");
+ if (fotg210 == NULL)
goto err_alloc;
- }
for (i = 0; i < FOTG210_MAX_NUM_EP; i++) {
_ep[i] = kzalloc(sizeof(struct fotg210_ep), GFP_KERNEL);
- if (_ep[i] == NULL) {
- pr_err("_ep kzalloc error\n");
+ if (_ep[i] == NULL)
goto err_alloc;
- }
fotg210->ep[i] = _ep[i];
}
OpenPOWER on IntegriCloud