usb: gadget: atmel_usba_udc: add missing ret value check
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 13 Jul 2015 09:03:54 +0000 (11:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 31 Jul 2015 13:58:03 +0000 (08:58 -0500)
commit7674cba55ad66b2565f8abe8d081a6ea4269bfb6
treeb468cede9941dc8a706708fe03651586d1d6c4ad
parentcb009d6e0b800e3834cd5e306df90d84e08f9cf7
usb: gadget: atmel_usba_udc: add missing ret value check

Add missing return value check. In case of error print debug message
and return error code.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c