]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
USB: typec: fsusb302: no need to check return value of debugfs_create_dir()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 11:08:54 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 14:03:59 +0000 (16:03 +0200)
commitbc9832c4a1921a662870d51f81a699ec8c18545f
tree431caba6e0cb5ded42a41a85128a9fc65a41f620
parente15bea0f3f75d4ee8f13b5ea76dcd210b24ef226
USB: typec: fsusb302: no need to check return value of debugfs_create_dir()

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.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/fusb302/fusb302.c