usb: gadget: gr_udc: remove some unneeded error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Jan 2014 13:34:11 +0000 (16:34 +0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 20 Feb 2014 15:16:17 +0000 (09:16 -0600)
commit798a2468e026ab6a922f2c6c70ca4406b8e8dbc1
tree77849cb88826a1dfe8fd7539e7770db47e81f460
parent3fcba0d87bfb5f880d34868090e05571dca80f78
usb: gadget: gr_udc: remove some unneeded error handling

Debugfs function return an ERR_PTR if they compiled out.  We don't need
to test for that here because if the debugfs file are compiled out then
it is ok to pass an ERR_PTR to debugfs_create_file() since it will just
be a no-op stub.

Debugfs return NULLs on error, but we don't need to test for that either
because debugfs_create_file() will accept NULL pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/gr_udc.c