USB: typec: fsusb302: no need to check return value of debugfs_create_dir()
Greg Kroah-Hartman
maintainerPATCH v2 2/22 USB: typec: fsusb302: no need to check return value of debugfs_create_dir()
Quoted 8 lines · Guenter Roeck
Quoted 7 lines · 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 way.
Quoted 8 lines
Quoted 6 lines
Cc Heikki Krogerus <[email protected]>Cc Guenter Roeck <[email protected]>Cc Hans de Goede <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Adam Thomson <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Reviewed-by Guenter Roeck <[email protected]>
Thanks for the review.
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html