Re: [PATCH 02/22 v2] USB: typec: fsusb302: no need to check return value of debugfs_create_dir()

2018-05-31 Thread Greg Kroah-Hartman
On Thu, May 31, 2018 at 06:16:27AM -0700, Guenter Roeck wrote: > On 05/31/2018 04:08 AM, Greg Kroah-Hartman wrote: > > When calling debugfs functions, there is no need to ever check the > > return value. The function can work or not, but the code logic should > > never do something different

Re: [PATCH 02/22 v2] USB: typec: fsusb302: no need to check return value of debugfs_create_dir()

2018-05-31 Thread Guenter Roeck
On 05/31/2018 04:08 AM, Greg Kroah-Hartman wrote: When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Clean up the fsusb302 driver to not care if the root directory

[PATCH 02/22 v2] USB: typec: fsusb302: no need to check return value of debugfs_create_dir()

2018-05-31 Thread Greg Kroah-Hartman
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Clean up the fsusb302 driver to not care if the root directory was created, as the code should work properly either