diff options
author | gregkh@linuxfoundation.org <gregkh@linuxfoundation.org> | 2017-11-03 15:47:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-03 16:00:56 +0100 |
commit | 7cd310f3fda3605caaa947221e8838eac5f2e45f (patch) | |
tree | b9a800bcee170febd2f4749dc20bf35d13aaf211 /drivers/staging | |
parent | f725fc6b489648770a4483cab8bc6679dd63c804 (diff) |
staging: unisys: don't care about debugfs errors
A caller should never care about a debugfs error return value, and it
should never abort its normal operation if something "odd" goes on. Fix
up the unisys init code to not care if the root debugfs directory for
the subsystem is created or not, as no place it is used will matter.
Cc: David Kershner <david.kershner@unisys.com>
Cc: Tim Sell <Timothy.Sell@unisys.com>
Cc: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Cc: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorbus_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 2f1e8d36aedf..b604d0cccef1 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -1217,8 +1217,6 @@ int visorbus_init(void) int err; visorbus_debugfs_dir = debugfs_create_dir("visorbus", NULL); - if (!visorbus_debugfs_dir) - return -ENOMEM; bus_device_info_init(&clientbus_driverinfo, "clientbus", "visorbus"); err = bus_register(&visorbus_type); if (err < 0) |