usb: gadget: fotg210-udc: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 06:42:21 +0000 (15:42 +0900)
committerFelipe Balbi <balbi@ti.com>
Wed, 14 May 2014 14:23:27 +0000 (09:23 -0500)
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>
drivers/usb/gadget/fotg210-udc.c

index 2d0305280e8c8b2631e6cd70f73b36f7389b6a8f..e143d69f601798f1e94ac1a39cdac71744e5fe6f 100644 (file)
@@ -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];
        }