summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 15:44:59 +0900
committerFelipe Balbi <balbi@ti.com>2014-05-14 09:23:28 -0500
commit8a24bb403974760b420777a76637b2e9f87ffa3f (patch)
tree665d85da29904a9e348eab5528dd8fda7e263565
parent8a67ab7d1d2d267ffad3e22b5e4e4d46230e925a (diff)
downloadop-kernel-dev-8a24bb403974760b420777a76637b2e9f87ffa3f.zip
op-kernel-dev-8a24bb403974760b420777a76637b2e9f87ffa3f.tar.gz
usb: gadget: fusb300_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>
-rw-r--r--drivers/usb/gadget/fusb300_udc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c
index 6423f18..3deb4e9 100644
--- a/drivers/usb/gadget/fusb300_udc.c
+++ b/drivers/usb/gadget/fusb300_udc.c
@@ -1400,17 +1400,13 @@ static int __init fusb300_probe(struct platform_device *pdev)
/* initialize udc */
fusb300 = kzalloc(sizeof(struct fusb300), GFP_KERNEL);
- if (fusb300 == NULL) {
- pr_err("kzalloc error\n");
+ if (fusb300 == NULL)
goto clean_up;
- }
for (i = 0; i < FUSB300_MAX_NUM_EP; i++) {
_ep[i] = kzalloc(sizeof(struct fusb300_ep), GFP_KERNEL);
- if (_ep[i] == NULL) {
- pr_err("_ep kzalloc error\n");
+ if (_ep[i] == NULL)
goto clean_up;
- }
fusb300->ep[i] = _ep[i];
}
OpenPOWER on IntegriCloud