usb: gadget: uvc: fix some error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jan 2015 20:59:48 +0000 (23:59 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 19 Jan 2015 16:10:19 +0000 (10:10 -0600)
commitdf90f8381972369ff33580e5c4b3c3eea91cc91b
treebfcd159a850ce4a6f790f42c32d70a96030504c6
parentd1fc4440d761af47fd0c32661725011bf66ebb51
usb: gadget: uvc: fix some error codes

We're basically saying ERR_CAST(NULL) and PTR_ERR(NULL) here, which is
nonsensical.

Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/uvc_configfs.c