From: Dan Carpenter Date: Fri, 17 Jan 2014 13:34:11 +0000 (+0300) Subject: usb: gadget: gr_udc: remove some unneeded error handling X-Git-Tag: v3.15-rc1~137^2~25^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=798a2468e026ab6a922f2c6c70ca4406b8e8dbc1;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed